/* ═══════════════════════════════════════════════════════════════════════════
   MODERN GALLERY PAGE - Touch & Glow Beauty Parlour
   ═══════════════════════════════════════════════════════════════════════════ */

/* Modern Page Header */
.modern-gallery-header {
    position: relative;
    padding: 120px 0 80px;
    background: 
        linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(45, 45, 45, 0.85) 100%), 
        url('../images/touch&glowbbsr_beuty_parlour_gallery.jpeg') center/cover;
    background-attachment: fixed;
    overflow: hidden;
}

.gallery-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 0;
    pointer-events: none;
}

.gallery-header-content {
    position: relative;
    z-index: 1;
}

.gallery-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #bf9456;
    margin-bottom: 15px;
}

.gallery-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gallery-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.8;
}

.gallery-breadcrumb {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.gallery-breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gallery-breadcrumb a:hover {
    color: #bf9456;
}

.gallery-breadcrumb .separator {
    margin: 0 10px;
    color: #bf9456;
}

/* Modern Gallery Section */
.modern-gallery-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Gallery Item */
.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.gallery-item.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Gallery Image Container */
.gallery-image-container {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 Aspect Ratio */
    overflow: hidden;
    background: #1a1a1a;
}

.gallery-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(191, 148, 86, 0.9) 0%, rgba(212, 168, 102, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Gallery Icon */
.gallery-icon {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bf9456;
    font-size: 24px;
    transform: scale(0.5) rotate(-180deg);
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover .gallery-icon {
    transform: scale(1) rotate(0deg);
}

/* Gallery Link */
.gallery-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Empty State */
.gallery-empty {
    text-align: center;
    padding: 80px 20px;
}

.gallery-empty-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #bf9456 0%, #d4a866 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #ffffff;
    font-size: 36px;
}

.gallery-empty-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.gallery-empty-text {
    font-size: 16px;
    color: #666666;
    line-height: 1.8;
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger Animation for Gallery Items */
.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }
.gallery-item:nth-child(9) { animation-delay: 0.9s; }

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1199px) {
    .gallery-title {
        font-size: 42px;
    }
    
    .gallery-grid {
        gap: 25px;
    }
}

@media (max-width: 991px) {
    .modern-gallery-header {
        padding: 100px 0 60px;
    }
    
    .gallery-title {
        font-size: 36px;
    }
    
    .modern-gallery-section {
        padding: 60px 0;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .modern-gallery-header {
        padding: 80px 0 50px;
    }
    
    .gallery-title {
        font-size: 32px;
    }
    
    .gallery-description {
        font-size: 15px;
    }
    
    .modern-gallery-section {
        padding: 50px 0;
    }
    
    .gallery-grid {
        gap: 20px;
    }
    
    .gallery-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 575px) {
    .gallery-title {
        font-size: 28px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-image-container {
        padding-top: 65%; /* Slightly wider aspect ratio for mobile */
    }
}

/* Accessibility */
.gallery-item:focus-within {
    outline: 2px solid #bf9456;
    outline-offset: 2px;
}

.gallery-link:focus {
    outline: 2px solid #bf9456;
    outline-offset: 2px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .gallery-item,
    .gallery-image,
    .gallery-overlay,
    .gallery-icon {
        animation: none !important;
        transition: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRETTYPHOTO LIGHTBOX - COMPLETE OVERRIDE FOR CLEAN DISPLAY
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hide all bottom elements completely */
div.pp_default .pp_bottom,
div.pp_default .pp_social,
div.pp_default .pp_loaderIcon,
div.ppt,
.pp_nav,
a.pp_expand,
a.pp_contract,
.pp_hoverContainer,
.pp_gallery,
.pp_details {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
}

/* Main lightbox container */
div.pp_pic_holder {
    background: rgba(0, 0, 0, 0.95) !important;
}

/* Content area - clean background */
div.pp_default .pp_top,
div.pp_default .pp_top .pp_middle,
div.pp_default .pp_content_container,
div.pp_default .pp_content_container .pp_left,
div.pp_default .pp_content_container .pp_right,
div.pp_default .pp_content {
    background: transparent !important;
}

/* Image container */
div.pp_content {
    background-color: transparent !important;
}

/* Close button - make it visible and styled */
a.pp_close {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: #bf9456 !important;
    color: #ffffff !important;
    text-align: center !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    font-weight: bold !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 99999 !important;
}

a.pp_close:hover {
    background: #d4a866 !important;
    transform: scale(1.1);
}

/* Navigation arrows - keep them visible and styled */
a.pp_arrow_previous,
a.pp_arrow_next {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(191, 148, 86, 0.8) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    top: 50% !important;
    margin-top: -25px !important;
}

a.pp_arrow_previous:hover,
a.pp_arrow_next:hover {
    background: #bf9456 !important;
}

a.pp_arrow_previous {
    left: 20px !important;
}

a.pp_arrow_next {
    right: 20px !important;
}

/* Remove any padding/margin from bottom */
div.pp_pic_holder.pp_default {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Ensure content container has no bottom space */
div.pp_content_container {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Hide counter/numbering */
.pp_nav p.currentTextHolder,
.pp_nav .pp_play,
.pp_nav .pp_pause {
    display: none !important;
}

/* Clean overlay */
div.pp_overlay {
    background: rgba(0, 0, 0, 0.85) !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    a.pp_close {
        width: 35px !important;
        height: 35px !important;
        line-height: 35px !important;
        font-size: 18px !important;
    }
    
    a.pp_arrow_previous,
    a.pp_arrow_next {
        width: 40px !important;
        height: 40px !important;
        margin-top: -20px !important;
    }
    
    a.pp_arrow_previous {
        left: 10px !important;
    }
    
    a.pp_arrow_next {
        right: 10px !important;
    }
}
