/* ================================================
   GALLERY PAGE STYLES - Laura's Beauty Touch
   Modern, Clean, High-End Spa Aesthetic
   ================================================ */

/* ================================================
   GLOBAL RESETS & FIXES
   ================================================ */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
}

/* ================================================
   HERO SECTION - Modern Design
   ================================================ */
.gallery-hero {
    position: relative;
    height: 60vh;
    min-height: 500px;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, 
        var(--forest-green, #3B4A2F) 0%, 
        #4a5d3c 50%,
        var(--mint-green, #A9C89C) 100%
    );
    overflow: hidden;
    margin-bottom: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 30px;
    max-width: 900px;
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--forest-green, #3B4A2F);
    background: var(--ivory-white, #FAFAF7);
    padding: 8px 24px;
    border-radius: 50px;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 600;
    color: var(--ivory-white, #FAFAF7);
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: 'Lato', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--ivory-white, #FAFAF7);
    margin-bottom: 0;
    letter-spacing: 0.3px;
    opacity: 0.95;
    line-height: 1.6;
}

/* ================================================
   GALLERY INTRO SECTION
   ================================================ */
.gallery-intro {
    padding: 100px 20px;
    background: var(--ivory-white, #FAFAF7);
    max-width: 100%;
    overflow: hidden;
}

.intro-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-heading {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--forest-green, #3B4A2F);
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.intro-text {
    font-family: 'Lato', sans-serif;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--charcoal, #1C1C1C);
    opacity: 0.85;
    max-width: 800px;
    margin: 0 auto;
}

/* ================================================
   GALLERY SECTION
   ================================================ */
.gallery-section {
    padding: 80px 20px 120px;
    background: #ffffff;
    max-width: 100%;
    overflow: hidden;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ================================================
   MODERN FILTER BUTTONS
   ================================================ */
.gallery-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 60px;
    padding: 0;
}

.filter-btn {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal, #1C1C1C);
    background: transparent;
    border: 2px solid #e0e0e0;
    padding: 12px 32px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: capitalize;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--forest-green, #3B4A2F);
    transition: width 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before {
    width: 100%;
}

.filter-btn:hover {
    color: var(--ivory-white, #FAFAF7);
    border-color: var(--forest-green, #3B4A2F);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--forest-green, #3B4A2F);
    color: var(--ivory-white, #FAFAF7);
    border-color: var(--forest-green, #3B4A2F);
}

.filter-btn.active::before {
    width: 100%;
}

/* ================================================
   MODERN GALLERY GRID
   ================================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
    padding: 0;
    width: 100%;
    max-width: 100%;
}

.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    height: 0;
    margin: 0;
    overflow: hidden;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 110%; /* Slightly taller than square for modern look */
    overflow: hidden;
    border-radius: 24px;
    background: #f5f5f5;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.gallery-image-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.gallery-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-image-wrapper:hover img {
    transform: scale(1.05);
}

/* ================================================
   MODERN OVERLAY DESIGN
   ================================================ */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, 
        rgba(28, 28, 28, 0.95) 0%, 
        rgba(28, 28, 28, 0.5) 50%,
        rgba(28, 28, 28, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    border-radius: 24px;
}

.gallery-image-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    width: 100%;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-image-wrapper:hover .overlay-content {
    transform: translateY(0);
}

.overlay-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ivory-white, #FAFAF7);
    margin-bottom: 6px;
    letter-spacing: 0px;
}

.overlay-description {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--ivory-white, #FAFAF7);
    margin-bottom: 18px;
    opacity: 0.9;
    letter-spacing: 0.3px;
}

.view-btn {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal, #1C1C1C);
    background: var(--ivory-white, #FAFAF7);
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.view-btn svg {
    transition: transform 0.3s ease;
}

.view-btn:hover {
    background: var(--mint-green, #A9C89C);
    color: var(--ivory-white, #FAFAF7);
    transform: translateX(3px);
}

.view-btn:hover svg {
    transform: scale(1.1);
}

/* ================================================
   MODERN LIGHTBOX MODAL
   ================================================ */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(10px);
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 30px 30px;
    z-index: 10000;
    overflow-y: auto;
}

.lightbox-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: lightboxZoomIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightboxZoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#lightboxImage {
    max-width: 100%;
    max-height: 65vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.2s ease;
}

.lightbox-caption {
    background: var(--ivory-white, #FAFAF7);
    padding: 35px 45px;
    border-radius: 20px;
    margin-top: 30px;
    text-align: center;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lightbox-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--forest-green, #3B4A2F);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.lightbox-description {
    font-family: 'Lato', sans-serif;
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--charcoal, #1C1C1C);
    opacity: 0.8;
    line-height: 1.7;
}

/* Lightbox Modern Controls */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(250, 250, 247, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.lightbox-close {
    top: 30px;
    right: 30px;
}

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

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

.lightbox-close span {
    font-size: 2rem;
    font-weight: 300;
    color: var(--charcoal, #1C1C1C);
    line-height: 1;
}

.lightbox-prev span,
.lightbox-next span {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--charcoal, #1C1C1C);
    line-height: 1;
}

.lightbox-close:hover {
    background: var(--forest-green, #3B4A2F);
    transform: scale(1.08) rotate(90deg);
}

.lightbox-close:hover span {
    color: var(--ivory-white, #FAFAF7);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--forest-green, #3B4A2F);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.08) translateX(-3px);
}

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

.lightbox-prev:hover span,
.lightbox-next:hover span {
    color: var(--ivory-white, #FAFAF7);
}

/* ================================================
   MODERN CTA SECTION
   ================================================ */
.gallery-cta {
    background: linear-gradient(135deg, 
        var(--forest-green, #3B4A2F) 0%, 
        #4a5d3c 100%
    );
    padding: 100px 30px;
    margin-top: 0;
    max-width: 100%;
    overflow: hidden;
}

.cta-container {
    max-width: 900px;
    margin: 0 auto;
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    color: var(--ivory-white, #FAFAF7);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.cta-text {
    font-family: 'Lato', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--ivory-white, #FAFAF7);
    margin-bottom: 40px;
    opacity: 0.95;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--forest-green, #3B4A2F);
    background: var(--ivory-white, #FAFAF7);
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover {
    background: var(--mint-green, #A9C89C);
    color: var(--ivory-white, #FAFAF7);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.cta-button:hover svg {
    transform: translateX(5px);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

/* Large Tablets */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
}

/* Tablets */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .gallery-intro {
        padding: 80px 20px;
    }
    
    .intro-heading {
        font-size: 2.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .cta-title {
        font-size: 2.5rem;
    }
}

/* Mobile Landscape & Small Tablets */
@media (max-width: 768px) {
    .gallery-hero {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 20px;
        margin-bottom: 20px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    .gallery-intro {
        padding: 60px 20px;
    }
    
    .intro-heading {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .gallery-section {
        padding: 60px 15px 80px;
    }
    
    .gallery-filters {
        gap: 10px;
        margin-bottom: 40px;
    }
    
    .filter-btn {
        font-size: 0.85rem;
        padding: 10px 24px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .gallery-image-wrapper {
        border-radius: 20px;
        padding-bottom: 120%;
    }
    
    .gallery-overlay {
        padding: 20px;
        border-radius: 20px;
    }
    
    .overlay-title {
        font-size: 1.3rem;
    }
    
    .overlay-description {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .lightbox-container {
        padding: 80px 20px 20px;
    }
    
    #lightboxImage {
        border-radius: 12px;
        max-height: 55vh;
    }
    
    .lightbox-caption {
        padding: 25px 30px;
        border-radius: 16px;
        margin-top: 20px;
    }
    
    .lightbox-title {
        font-size: 1.5rem;
    }
    
    .lightbox-description {
        font-size: 0.95rem;
    }
    
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 48px;
        height: 48px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
    
    .lightbox-prev {
        left: 20px;
    }
    
    .lightbox-next {
        right: 20px;
    }
    
    .gallery-cta {
        padding: 80px 20px;
    }
    
    .cta-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .cta-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .cta-button {
        font-size: 0.95rem;
        padding: 16px 32px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .gallery-hero {
        height: 45vh;
        min-height: 350px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .gallery-intro {
        padding: 50px 15px;
    }
    
    .intro-heading {
        font-size: 1.5rem;
    }
    
    .intro-text {
        font-size: 0.95rem;
    }
    
    .gallery-section {
        padding: 50px 15px 60px;
    }
    
    .gallery-filters {
        gap: 8px;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 8px 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .gallery-cta {
        padding: 60px 20px;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-text {
        font-size: 0.95rem;
    }
    
    .cta-button {
        font-size: 0.9rem;
        padding: 14px 28px;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .intro-heading {
        font-size: 1.3rem;
    }
    
    .filter-btn {
        font-size: 0.75rem;
        padding: 7px 18px;
    }
}
