/* Gallery Main Stylesheet */
.gallery-page header {
    background: rgba(250, 250, 248, 0.98) !important;
    box-shadow: 0 4px 20px rgba(44, 95, 93, 0.08) !important;
    backdrop-filter: blur(30px) !important;
    padding: 15px 40px !important;
}

body.dark-mode .gallery-page header {
    background: rgba(26, 31, 30, 0.98) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

body.gallery-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.gallery-main {
    padding-top: 80px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Promo Hero Banner */
.promo-hero-banner {
    background: var(--primary-gradient);
    padding: 120px 2.5rem 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-bottom: 0;
}

.promo-hero-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.06) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.promo-hero-banner::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--bg-light);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 1;
}

body.dark-mode .promo-hero-banner::after {
    background: var(--bg-dark);
}

.promo-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.promo-hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 14px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.promo-hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.promo-hero-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    margin-bottom: 32px;
    line-height: 1.6;
}

.promo-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 9px 22px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.promo-hero-back:hover {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(-4px);
}

.promo-hero-back svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.promo-hero-back:hover svg {
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    .promo-hero-banner {
        padding: 95px 1.5rem 55px;
    }
}


/* Gallery Grid Layout */
.gallery-grid-container {
    padding: 4rem 4rem 10rem;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--desktop-columns, 4), 1fr);
    gap: 1.5rem;
}

@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(min(var(--desktop-columns, 4), 3), 1fr);
    }
    .gallery-grid-container {
        padding: 3rem 3rem 8rem;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid-container {
        padding: 2rem 2rem 6rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid-container {
        padding: 1.5rem 1.5rem 5rem;
    }
}

/* Gallery Item / Card */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    background: linear-gradient(90deg, #f0f0f0 25%, #e5e5e5 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

body.dark-mode .gallery-item {
    background: linear-gradient(90deg, #252a29 25%, #2d3332 50%, #252a29 75%);
    background-size: 200% 100%;
}

.gallery-item.img-loaded {
    animation: none;
    background: #f0f0f0;
}

body.dark-mode .gallery-item.img-loaded {
    background: #252a29;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease-in-out;
}

.gallery-item.img-loaded img {
    opacity: 1;
}

/* Hover overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(44, 95, 93, 0.9) 0%, rgba(44, 95, 93, 0.3) 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.gallery-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    display: flex;
    gap: 1rem;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    z-index: 5;
}

.gallery-action-btn {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c5f5d;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-action-btn:hover {
    background: #2c5f5d;
    color: white;
    transform: scale(1.1);
}

.gallery-action-btn svg {
    width: 20px;
    height: 20px;
}

.gallery-caption {
    width: 100%;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    transform: translateY(10px);
    opacity: 0;
}

.gallery-caption h4 {
    margin: 0;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.4;
    text-transform: uppercase;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

/* Hover triggers */
.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(44, 95, 93, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-actions {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Lightbox overlay styling */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 20, 20, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content-wrapper {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-modal.active .lightbox-image.loaded {
    transform: scale(1);
    opacity: 1;
}

.lightbox-info {
    margin-top: 1.5rem;
    text-align: center;
    width: 100%;
    z-index: 10010;
}

.lightbox-info h3 {
    margin: 0;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* Lightbox Action buttons */
.lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 10010;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lightbox-btn:hover {
    background: white;
    color: #2c5f5d;
    transform: scale(1.08);
}

.lightbox-controls-top {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 1rem;
    align-items: center;
    z-index: 10010;
}

.lightbox-controls-top .lightbox-btn {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
}

.lightbox-btn-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-btn-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* Prevent Y-translate shift on hover for absolute buttons */
.lightbox-btn-prev:hover {
    transform: translateY(-50%) scale(1.08);
}

.lightbox-btn-next:hover {
    transform: translateY(-50%) scale(1.08);
}

/* Responsive fixes for lightbox buttons on mobile */
@media (max-width: 768px) {
    .lightbox-controls-top {
        top: 15px;
        right: 15px;
        gap: 0.75rem;
    }
    .lightbox-btn {
        width: 44px;
        height: 44px;
    }
    .lightbox-btn-prev {
        left: 10px;
    }
    .lightbox-btn-next {
        right: 10px;
    }
    .lightbox-info h3 {
        font-size: 1.1rem;
    }
}

.load-more-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4.5rem;
    margin-bottom: 2.5rem;
}

/* Load More Button Styling */
.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid #2c5f5d;
    color: #2c5f5d;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 2.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 12px rgba(44, 95, 93, 0.1);
}

.btn-load-more:hover {
    background: #2c5f5d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 95, 93, 0.2);
}

.btn-load-more iconify-icon {
    transition: transform 0.3s ease;
}

.btn-load-more:hover iconify-icon {
    transform: translateY(2px);
}

body.dark-mode .btn-load-more {
    border-color: #4a9e9a;
    color: #4a9e9a;
    box-shadow: 0 4px 12px rgba(74, 158, 154, 0.1);
}

body.dark-mode .btn-load-more:hover {
    background: #4a9e9a;
    color: #121212;
    box-shadow: 0 8px 20px rgba(74, 158, 154, 0.25);
}

/* Gallery Hidden items helper */
.gallery-item.gallery-hidden {
    display: none !important;
}

@media (max-width: 576px) {
    .btn-load-more {
        width: 100%;
        max-width: 280px;
        padding: 0.75rem 1.8rem;
        font-size: 0.9rem;
    }
}

