/* ==========================================================================
   JOY GIRLS' GALLERY SECTION STYLES
   Colors: Navy (#0D1F3E), Gold (#C9A24A), Cream (#F6F0E0), White (#FFFFFF)
   ========================================================================== */

/* Utility & Color Customization */
.text-navy {
    color: #0D1F3E !important;
}

.bg-navy {
    background-color: #0D1F3E !important;
}

.text-gold {
    color: #C9A24A !important;
}

.bg-gold {
    background-color: #C9A24A !important;
}

.text-cream {
    color: #F6F0E0 !important;
}

.bg-cream {
    background-color: #F6F0E0 !important;
}

.rounded-20 {
    border-radius: 20px !important;
}

.z-index-2 {
    z-index: 2;
}

.z-index-3 {
    z-index: 3;
}

.header-divider {
    width: 60px;
    height: 3px;
    background-color: #C9A24A;
    border-radius: 2px;
}

/* 1. Hero Gallery Section */
.gallery-hero-section {
    min-height: 420px;
    border-bottom-left-radius: 36px;
    border-bottom-right-radius: 36px;
    display: flex;
    align-items: center;
    background-color: #0D1F3E;
}

.gallery-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: scale(1.02);
}

.gallery-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 31, 62, 0.75) 0%, rgba(13, 31, 62, 0.95) 100%);
}

.hero-badge {
    background-color: rgba(201, 162, 74, 0.2);
    border: 1px solid rgba(201, 162, 74, 0.5);
    color: #C9A24A;
}

/* Hero & Theme Buttons */
.btn-gold {
    background-color: #C9A24A;
    color: #0D1F3E;
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gold:hover {
    background-color: #d8b158;
    color: #0D1F3E;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 162, 74, 0.3) !important;
}

.btn-gold-sm {
    background-color: #C9A24A;
    color: #0D1F3E;
    border: none;
    padding: 10px 16px;
    transition: all 0.3s ease;
}

.btn-gold-sm:hover {
    background-color: #ffffff;
    color: #0D1F3E;
}

.btn-navy {
    background-color: #0D1F3E;
    color: #ffffff;
    border: none;
    transition: all 0.3s ease;
}

.btn-navy:hover {
    background-color: #C9A24A;
    color: #0D1F3E;
}

.btn-outline-navy {
    border: 2px solid #0D1F3E;
    color: #0D1F3E;
    background: transparent;
    font-weight: 600;
}

.btn-outline-navy:hover {
    background-color: #0D1F3E;
    color: #ffffff;
}

/* 2. Gallery Album Cards */
.album-card {
    height: 380px;
    background-color: #0D1F3E;
    cursor: pointer;
}

.album-cover-img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(13, 31, 62, 0.2) 0%, rgba(13, 31, 62, 0.6) 50%, rgba(13, 31, 62, 0.95) 100%);
    transition: background 0.4s ease;
}

.album-badge {
    background-color: rgba(13, 31, 62, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #F6F0E0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

.album-details {
    transform: translateY(28px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.album-desc {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.open-album-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease 0.1s;
}

/* Card Hover Animations */
.album-card:hover .album-cover-img {
    transform: scale(1.1);
}

.album-card:hover .album-overlay {
    background: linear-gradient(180deg, rgba(13, 31, 62, 0.3) 0%, rgba(13, 31, 62, 0.75) 40%, rgba(13, 31, 62, 0.98) 100%);
}

.album-card:hover .album-details {
    transform: translateY(0);
}

.album-card:hover .open-album-btn {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Modal Image Grid Item */
.modal-grid-item {
    height: 200px;
    position: relative;
    cursor: pointer;
}

.modal-grid-item img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modal-grid-item:hover img {
    transform: scale(1.06);
}

.modal-grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 31, 62, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-grid-item:hover .modal-grid-overlay {
    opacity: 1;
}

/* 4. Lightbox Preview */
.lightbox-img-wrapper {
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrapper img {
    max-height: 75vh;
    object-fit: contain;
}

.lightbox-nav-btn {
    width: 48px;
    height: 48px;
    background-color: rgba(13, 31, 62, 0.7);
    backdrop-filter: blur(6px);
    transition: all 0.3s ease;
}

.lightbox-nav-btn:hover {
    background-color: #C9A24A;
    color: #0D1F3E !important;
}

.lightbox-prev {
    left: -20px !important;
}

.lightbox-next {
    right: -20px !important;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .gallery-hero-section {
        min-height: 360px;
        border-bottom-left-radius: 24px;
        border-bottom-right-radius: 24px;
    }
    .album-card {
        height: 350px;
    }
}

@media (max-width: 575.98px) {
    .album-card {
        height: 320px;
    }
    .album-details {
        transform: translateY(0);
    }
    .open-album-btn {
        opacity: 1;
        transform: translateY(0);
    }
    .lightbox-prev {
        left: 5px !important;
    }
    .lightbox-next {
        right: 5px !important;
    }
}