/* Gallery Page Styles */

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 80vh;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
    letter-spacing: 0.01em;
}

.gallery-subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Gallery Grid Layout - 3 Images */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Tablet: 3 columns in a row */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        max-width: 600px;
    }
}

/* Mobile: Single column */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        max-width: 300px;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 1 / 1; /* Force square aspect ratio */
    width: 100%;
    text-decoration: none;
    display: block;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover .overlay {
    background: rgba(0, 0, 0, 0.4);
}

.gallery-item .overlay svg {
    width: 2rem;
    height: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.gallery-item:hover .overlay svg {
    opacity: 1;
}

/* Lightbox2 Custom Styling */
.lb-overlay {
    background: rgba(0, 0, 0, 0.9) !important;
}

.lb-outerContainer {
    border-radius: 8px;
    overflow: hidden;
}

.lb-data .lb-caption {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

.lb-data .lb-number {
    color: #ccc;
    font-size: 14px;
    font-weight: 400;
}

.lb-data .lb-close {
    background-size: 24px 24px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.lb-data .lb-close:hover {
    opacity: 1;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    background-size: 32px 32px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

.lb-loader {
    border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .gallery-section {
        padding: 3rem 0;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .gallery-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .gallery-item img {
        height: 12rem; /* Smaller height on mobile */
    }

    .lb-nav a.lb-prev,
    .lb-nav a.lb-next {
        background-size: 24px 24px;
    }

    .lb-data .lb-caption {
        font-size: 14px;
        padding: 8px 0;
    }
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

