:root {
    --primary: #a67c2e;
    --primary-light: #bf8b41;
    --text-dark: #644122;
    --background-light: #fff9f3;
    --background-white: #ffffff;
    --box-shadow: rgba(166, 124, 46, 0.1);
    --border-radius: 18px;
    --font-header: 'Fredoka', sans-serif;
    --font-body: 'Fredoka', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover,
a:focus {
    text-decoration: underline;
    color: var(--primary-light);
}

/* --- NEW HERO SECTION (Slideshow) --- */
header.hero {
    position: relative;
    height: 85vh;
    /* Takes up 85% of screen height */
    min-height: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding: 0 1rem;
    background-color: #333;
    /* Fallback color */
    border-bottom: 4px solid var(--primary);
    box-shadow: 0 8px 32px var(--box-shadow);
    /* border-radius: 0 0 var(--border-radius) var(--border-radius); */
}

/* 1. Background Slideshow Logic */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* Changed from 20s to 30s because we have 6 images now */
    animation: slideShow 30s infinite;
}

/* Stagger animation (Cross-fade effect) */
.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 5s;
}

.slide:nth-child(3) {
    animation-delay: 10s;
}

.slide:nth-child(4) {
    animation-delay: 15s;
}

.slide:nth-child(5) {
    animation-delay: 20s;
}

.slide:nth-child(6) {
    animation-delay: 25s;
}

@keyframes slideShow {
    0% {
        opacity: 0;
    }

    3% {
        opacity: 1;
    }

    /* Fade in quickly */
    17% {
        opacity: 1;
    }

    /* Stay visible (100% / 6 = ~16.6%) */
    20% {
        opacity: 0;
    }

    /* Fade out */
    100% {
        opacity: 0;
    }
}

/* 2. Dark Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    /* 45% black overlay */
    z-index: 1;
}

/* 3. Logo in Corner */
.logo-corner {
    position: absolute;
    top: 25px;
    left: 25px;
    width: 180px;
    /* Adjust size as needed */
    height: auto;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

/* 4. Centered Content */
.hero-content {
    position: relative;
    z-index: 2;
    /* Sits on top of overlay */
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 3rem;
    /* Reduced from 3.5rem */
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.hero .tagline {
    font-size: 1.25rem;
    /* Reduced from 1.5rem */
    font-weight: 500;
    margin-bottom: 0;
    /* Remove bottom margin here, we will use the button's top margin */
    color: #f0f0f0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px;
    /* Adds a bit of elegance */
}

.cta-btn {
    /* --- NEW CODE TO MOVE BUTTON DOWN --- */
    position: relative;
    top: 120px;
    /* Adjust this number to move it further down/up */

    /* Your existing styles */
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.85rem 2.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--primary);
    border-radius: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-btn:hover,
.cta-btn:focus {
    background: var(--primary-light);
    transform: scale(1.05);
    color: white;
}

/* Animation for text entering */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE ADJUSTMENTS --- */
/* This catches iPads and smaller laptops */
@media (max-width: 1024px) {

    /* 1. Shrink the logo so it doesn't overlap text */
    .logo-corner {
        width: 130px;
        /* Reduced from 180px */
        top: 20px;
        left: 20px;
    }

    /* 2. Shrink Headline & Tagline */
    .hero h1 {
        font-size: 2.2rem;
        /* Reduced from 3rem */
        padding: 0 1rem;
        /* Ensure text doesn't touch edges */
        margin-top: 3rem;
        /* Push text down slightly to clear the logo area */
    }

    .hero .tagline {
        font-size: 1.1rem;
        /* Reduced from 1.25rem */
    }
}

@media (max-width: 600px) {
    header.hero {
        /* Was 70vh, reducing to 55vh makes images look less cropped */
        height: 55vh;
        min-height: 400px;
        /* Ensures it doesn't get too small */
    }

    .logo-corner {
        width: 110px;
        /* Smaller logo on phone */
        top: 15px;
        left: 15px;
    }

    .hero h1 {
        font-size: 2rem;
        /* Reduced from 2.2rem */
        margin-top: 3rem;
        padding: 0 10px;
        /* Prevents text hitting screen edges */
    }

    .hero .tagline {
        font-size: 1rem;
        /* Smaller tagline on phone */
    }

    .cta-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
        border-width: 1.5px;
        /* Adjust the vertical position if it feels too low/high */
        top: 60px;
    }

    /* (Optional) Ensure logo doesn't dominate on small phones */
    .logo-corner {
        width: 100px;
    }
}

/* --- SIMPLE PAGE HEADER (For Gallery, etc.) --- */
.page-header {
    position: relative;
    background: var(--background-white);
    /* Restores white background */
    padding: 3rem 1rem 2rem;
    text-align: center;
    border-bottom: 4px solid var(--primary);
    /* Keeps your branding line */
    color: var(--text-dark);
    /* Restores dark text */
}

.page-header h1 {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    /* Gold color for title */
}

.page-header .tagline {
    font-size: 1.2rem;
    color: var(--text-dark);
    /* Dark grey for subtitle */
    opacity: 0.8;
}

/* Ensure the back link stays visible on the white background */
.back-link {
    position: absolute;
    top: 30px;
    left: 20px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary);
}

/* Mobile Adjustment for the Back Link */
@media (max-width: 600px) {
    .back-link {
        position: static;
        /* Stack it normally on mobile */
        display: inline-block;
        margin-bottom: 1rem;
    }

    .page-header {
        padding: 1.5rem 1rem;
    }
}

nav {
    background: var(--primary);
    color: white;
    border-radius: 32px;
    margin: 2rem auto 0 auto;
    padding: 1rem 0.5rem;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 10;
    max-width: 1200px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    font-weight: 600;
    margin: 0 1.5rem;
    font-size: 1.1rem;
    padding: 0.25rem 0;
    transition: color 0.2s;
}

nav a:hover,
nav a:focus {
    color: var(--primary-light);
}

/* --- Hamburger Base Style --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: var(--primary);
    border: none;
    cursor: pointer;
    border-radius: 8px;
    z-index: 21;
    align-items: center;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3.5px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s;
}

/* --- Navigation Container Update --- */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* --- Navigation Links styling for desktop --- */
.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* --- Mobile Styles --- */
@media (max-width: 600px) {
    nav {
        padding: 0.45em 0;
        max-width: 100vw;
        border-radius: 0;
    }

    .nav-container {
        justify-content: space-between;
        width: 100%;
        padding: 0 1rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        gap: 1.5rem;
        background: var(--primary);
        position: fixed;
        top: 0;
        right: 0;
        width: 80vw;
        max-width: 320px;
        height: 100vh;
        padding-top: 4.5rem;
        padding-bottom: 2.5rem;
        box-shadow: -2px 0 16px rgba(100, 65, 34, 0.1);
        transform: translateX(100%);
        transition: transform 0.25s;
        z-index: 20;
        border-radius: 16px 0 0 16px;
        font-size: 1.18rem;
        align-items: flex-start;
    }

    .nav-links.open {
        transform: translateX(0);
        /* Slide in when open */
    }
}

/* Hamburger to X animation when active */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}


.section {
    margin: 3rem auto;
    max-width: 1100px;
    padding: 2rem 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 6px 28px var(--box-shadow);
    background-color: var(--background-white);
    text-align: center;
}

.light-bg {
    background-color: var(--background-light);
    box-shadow: none;
}

.section h2 {
    font-family: var(--font-header);
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 1.4rem;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.8rem;
    justify-items: stretch;
    /* ensures items stretch to fill the grid cell */
}


.service-card {
    background: white;
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(191, 139, 65, 0.08);
    padding: 1.75rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    /* fill grid cell height */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}


.service-card:hover,
.service-card:focus-within {
    transform: translateY(-8px);
    box-shadow: 0 6px 16px rgba(191, 139, 65, 0.17);
}

.service-card i {
    color: var(--primary);
    font-size: 2.4rem;
    margin-bottom: 0.75rem;
}

.service-card h3 {
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
}

.service-info {
    margin-top: 2rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-light);
    text-align: center;
    font-style: italic;
    user-select: none;
}

.service-info i {
    margin-right: 0.2em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    justify-items: center;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    border-radius: var(--border-radius);
    object-fit: cover;
    box-shadow: 0 2px 12px rgba(166, 124, 46, 0.11);
    transition: transform 0.25s ease;
    cursor: pointer;
}

.gallery-grid img:hover,
.gallery-grid img:focus {
    transform: scale(1.05);
}

/* --- PROMOTIONS SECTION (Poster Only) --- */
.section-subtitle {
    margin-top: -1rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    opacity: 0.8;
    font-size: 1.1rem;
}

/* Horizontal Scroll Container */
.promo-container {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 1.5rem 2rem 1.5rem;
    /* Increased side padding for better look */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    /* FIX: Force items to start from the left */
    justify-content: flex-start;
}

/* The Clickable Poster Card */
.promo-poster {
    flex: 0 0 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 4px 12px rgba(166, 124, 46, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    cursor: zoom-in;
    scroll-margin-left: 1.5rem;
}

/* Hover effect */
.promo-poster:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 28px rgba(166, 124, 46, 0.25);
}

/* Image Styling */
.promo-poster img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    /* Ensures the whole flyer is visible */
}

/* Scrollbar Styling */
.promo-container::-webkit-scrollbar {
    height: 10px;
}

.promo-container::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 5px;
}

.promo-container::-webkit-scrollbar-thumb {
    background: #dcdcdc;
    border-radius: 5px;
}

.promo-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Mobile Adjustment: Make posters slightly smaller on phone so you can see the next one peeking out */
@media (max-width: 600px) {
    .promo-poster {
        flex: 0 0 280px;
    }
}

.review {
    max-width: 600px;
    background: white;
    border: 1.5px solid var(--primary);
    border-radius: var(--border-radius);
    margin: 1.2rem auto;
    padding: 1rem 1.75rem;
    box-shadow: 0 2px 10px rgba(166, 124, 46, 0.1);
    text-align: left;
    font-size: 1rem;
}

.stars {
    color: gold;
    font-size: 1.2rem;
    margin-bottom: 0.75em;
    letter-spacing: 0.1em;
}

.reviews-link a {
    color: var(--primary);
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
    text-decoration: underline;
    font-size: 1.06em;
}

.reviews-link a:hover {
    color: var(--primary-light);
}

/* --- GOOGLE REVIEWS BADGE (Centered Version) --- */
.google-rating-badge {
    display: flex;
    justify-content: center;
    /* Centers content */
    align-items: center;
    background: white;
    max-width: 400px;
    /* Smaller max-width since content is less */
    margin: 0 auto 2rem auto;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    /* Pill shape looks modern for stats */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    gap: 1.5rem;
    /* Space between Score and Stars */
}

.google-score-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* The "G" Icon */
.google-icon {
    font-size: 2rem;
    /* Google Colors Gradient */
    background: conic-gradient(from -45deg,
            #ea4335 110deg,
            #4285f4 90deg 180deg,
            #34a853 180deg 270deg,
            #fbbc05 270deg 360deg);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Fallback for icon color if gradient doesn't work */
@supports not (background-clip: text) {
    .google-icon {
        background: none;
        color: #4285f4;
    }
}

.google-score {
    font-family: var(--font-header);
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}

.google-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 1px solid #ddd;
    /* Divider line */
    padding-left: 1.5rem;
}

.google-stars {
    color: #fbbc04;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.google-count {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

/* Mobile Adjustment */
@media (max-width: 450px) {
    .google-rating-badge {
        flex-direction: column;
        border-radius: 16px;
        gap: 0.5rem;
        padding: 1rem;
    }

    .google-meta {
        border-left: none;
        padding-left: 0;
        align-items: center;
    }
}

.social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1.2rem;
}

.social-icons a {
    color: var(--primary);
    font-size: 2.6rem;
    transition: color 0.2s, transform 0.2s;
}

.social-icons a:hover {
    color: var(--primary-light);
    transform: scale(1.25);
}

.contact-card {
    background: #fff9f3;
    /* border: 1.8px solid #a67c2e; */
    border: 1.5px solid var(--primary);
    box-shadow: 0 3px 16px rgba(166, 124, 46, 0.07);
    border-radius: 16px;
    max-width: 700px;
    margin: 1.5em auto;
    padding: 1em 1.2em 1.2em 1.2em;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 1.0em; */
}

.contact-directions {
    font-size: 1.09rem;
    color: #644122;
    margin-bottom: 0.7em;
}

.contact-directions strong {
    color: #a67c2e;
}

.map-embed {
    width: 100%;
    max-width: 520px;
    height: 320px;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(166, 124, 46, 0.08);
    margin: 0.7em 0;
    display: block;
}

.phone-number {
    font-size: 1.06rem;
    font-weight: 600;
    color: #644122;
    margin-top: 0.8em;
}

.phone-number i {
    color: #a67c2e;
    margin-right: 0.35em;
}

.phone-number a {
    color: #a67c2e;
    /* text-decoration: underline; */
}

.phone-number a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* --- CONTACT SECTION UPDATES --- */

.contact-options {
    /* margin-top: 1rem; */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* gap: 1rem; */
}

.messaging-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    /* margin-bottom: 0.5rem; */
}

.chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chat-btn:hover {
    transform: translateY(-3px);
    text-decoration: none;
    color: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.chat-btn i {
    font-size: 1.2rem;
}

/* Specific Colors for Brands */
.line-btn {
    background-color: #06c755;
    /* Official LINE Green */
}

.line-btn:hover {
    background-color: #05b34c;
}

/* Messenger Brand Color */
.messenger-btn {
    background-color: #0084FF;
    /* Official Messenger Blue */
}

.messenger-btn:hover {
    background-color: #0074e0;
    /* Slightly darker on hover */
}

.whatsapp-btn {
    background-color: #25d366;
    /* Official WhatsApp Green */
}

.whatsapp-btn:hover {
    background-color: #20bd5a;
}

@media (max-width: 700px) {
    .contact-card {
        max-width: 99vw;
        padding: 1.1em 0.5em 0.9em 0.5em;
    }

    .map-embed {
        max-width: 98vw;
        height: 240px;
    }

    /* --- NEW ADDITIONS FOR CHAT BUTTONS --- */

    /* 1. Stack the buttons vertically instead of side-by-side */
    .messaging-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 0.5rem;
    }

    /* 2. Make buttons full-width bars for easier tapping */
    .chat-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }
}

footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 1rem 0 1.15rem 0;
    font-size: 1.02rem;
    letter-spacing: 0.05em;
    margin-top: 3em;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* --- VIEW MORE CARD (Main Page) --- */
.view-more-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--background-light);
    color: var(--primary-light);
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(166, 124, 46, 0.2);
    min-height: 220px;
    width: 100%;
    /* Matches your image height */
    text-decoration: none;
}

.view-more-card:hover {
    background-color: var(--primary-light);
    transform: translateY(-5px);
    color: white;
    text-decoration: none;
}

.view-more-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.view-more-content span {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

.view-more-content small {
    font-size: 0.85rem;
    opacity: 0.9;
}

@media (max-width: 900px) {
    .service-cards {
        flex-direction: column;
        align-items: center;
    }

    .section,
    .light-bg {
        padding: 2rem 0.75rem;
    }

    .logo {
        width: 160px;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 0.6em;
    }

    .section h2 {
        font-size: 1.35rem;
    }

    .gallery-grid img {
        height: 220px;
        width: 100%;
        object-fit: cover;
        border-radius: 8px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .logo {
        width: 120px;
    }

    /* --- NEW FIX: View More Card Alignment --- */
    .view-more-card {
        /* CHANGED: Match the new image height */
        min-height: 220px;
        height: 220px;

        width: 100%;
        border-radius: 8px;
        /* Match image rounded corners */

        /* Flexbox to center content vertically and horizontally */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .view-more-content i {
        /* CHANGED: Make icon big again since we have space */
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .view-more-content span {
        font-size: 1rem;
        font-weight: 600;
    }

    .view-more-content small {
        /* CHANGED: Bring back the subtitle! We have room for it now. */
        display: block;
        font-size: 0.85rem;
        margin-top: 5px;
    }
}

/* --- GALLERY PAGE SPECIFIC --- */
.back-link {
    position: absolute;
    top: 20px;
    left: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.gallery-page-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* --- MASONRY LAYOUT --- */
.masonry-grid {
    column-count: 3;
    /* Default: 3 Columns */
    column-gap: 1.5rem;
}

.masonry-item {
    break-inside: avoid;
    /* Prevents item splitting across columns */
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
}

.masonry-item img,
.masonry-item video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.masonry-item:hover img,
.masonry-item:hover video {
    transform: scale(1.03);
}

/* Video Indicator Icon */
.video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Let clicks pass through to video */
}

/* --- LIGHTBOX (ZOOM) STYLES --- */
.lightbox {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s;
}

.lightbox-content-wrapper {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content-wrapper img,
.lightbox-content-wrapper video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- RESPONSIVE MASONRY --- */
@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }

    .back-link {
        position: static;
        display: block;
        margin-bottom: 1rem;
    }
}

::-webkit-scrollbar {
    width: 8px;
    background: #f0e2c3;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 6px;
}