:root {
        --primary-color: #1E1E1E;
        --secondary-color: #5A3D22;
        --accent-color: #C68A4A;
        --text-dark: #141414;
        --text-medium: #404040;
        --text-light: #6A6A6A;
        --light-bg: #F9F3EE;
        --dark-bg: #1E1E1E;
        --white: #FFFFFF;
        --black: #000000;
        --btn-light: #C68A4A;
        --btn-light-hover: #A6703A;
        --btn-dark: #5A3D22;
        --btn-dark-hover: #3F2A17;
        --primary-font: 'Playfair Display', serif;
        --secondary-font: 'Montserrat', sans-serif;
        --section-padding: 100px 0;
        --section-padding-md: 70px 0;
        --section-padding-sm: 50px 0;
        --transition: all 0.3s ease-in-out;
        --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.1);
        --border-radius: 12px;
    }

    /* ========== Hero Section ========== */
    .gallery-hero {
        position: relative;
        height: 60vh;
        min-height: 500px;
        display: flex;
        align-items: center;
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3)),
            url('/wp-content/uploads/2025/08/blur-hospital-1-scaled.webp') no-repeat center/cover;
        color: var(--white);
        background-attachment: fixed;
        overflow: hidden;
    }

    .gallery-hero .hero-content {
        position: relative;
        z-index: 3;
        max-width: 800px;
        margin: 0 auto;
        text-align: center;
        padding: 0 20px;
    }

    .gallery-hero h1 {
        font-family: var(--primary-font);
        font-size: clamp(2.5rem, 5vw, 4rem);
        margin-bottom: 1.5rem;
        color: var(--white);
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        line-height: 1.2;
        animation: fadeInUp 0.8s ease-out forwards;
    }

    .gallery-hero p {
        font-family: var(--secondary-font);
        font-size: clamp(1rem, 2vw, 1.5rem);
        opacity: 0.9;
        margin-bottom: 2rem;
        animation: fadeInUp 0.8s ease-out 0.3s forwards;
        opacity: 0;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

    .hero-btn {
        display: inline-block;
        padding: 12px 30px;
        background-color: var(--accent-color);
        color: var(--white);
        font-family: var(--secondary-font);
        font-weight: 600;
        text-decoration: none;
        border-radius: 50px;
        transition: var(--transition);
        animation: fadeInUp 0.8s ease-out 0.6s forwards;
        opacity: 0;
        box-shadow: 0 4px 15px rgba(198, 138, 74, 0.3);
    }

    .hero-btn:hover {
        background-color: var(--btn-light-hover);
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(198, 138, 74, 0.4);
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

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

    @keyframes betterPulse {
        0% {
            transform: scale(1);
            box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        }

        25% {
            transform: scale(1.05);
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
        }

        50% {
            transform: scale(1.09);
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.18);
        }

        70% {
            transform: scale(1.07);
            box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
        }

        100% {
            transform: scale(1);
            box-shadow: 0 0 0 rgba(0, 0, 0, 0);
        }
    }

    .cta-btns .btn-primary {
        animation: betterPulse 2s ease-in-out infinite;
        will-change: transform, opacity, box-shadow;
    }

    /* ========== Gallery Section ========== */
    .gallery-section {
        padding: var(--section-padding);
        background: var(--white);
    }

    .section-header {
        text-align: center;
        margin-bottom: 50px;
        position: relative;
    }

    .section-header h2 {
        font-family: var(--primary-font);
        font-size: 2.5rem;
        color: var(--secondary-color);
        margin-bottom: 15px;
        position: relative;
        display: inline-block;
    }

    .section-header h2:after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: var(--accent-color);
    }

    .section-header p {
        font-family: var(--secondary-font);
        color: var(--text-medium);
        font-size: 1.1rem;
        max-width: 700px;
        margin: 0 auto;
    }

    .gallery-search {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 20px;
        position: relative;
    }

    .gallery-search input {
        padding: 10px 15px;
        border: 1px solid #ddd;
        border-radius: 30px;
        width: 250px;
        font-family: var(--secondary-font);
        transition: var(--transition);
        padding-right: 40px;
    }

    .gallery-search input:focus {
        outline: none;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(198, 138, 74, 0.2);
    }

    .gallery-search i {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--text-light);
        cursor: pointer;
    }

    .gallery-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 20px;
        margin-top: 3rem;
    }

    .gallery-item {
        position: relative;
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: var(--shadow);
        transition: var(--transition);
        aspect-ratio: 4/3;
    }

    .gallery-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease, filter 0.3s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.1);
        filter: brightness(0.9);
    }

    .gallery-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 25px;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
        color: var(--white);
        transform: translateY(100%);
        transition: transform 0.4s ease;
    }

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

    .gallery-caption h3 {
        font-family: var(--primary-font);
        margin-bottom: 8px;
        font-size: 1.4rem;
        color: white;
        font-weight: bolder;
    }

    .gallery-caption p {
        font-family: var(--secondary-font);
        font-size: 0.95rem;
        opacity: 0.9;
        margin: 0;
        line-height: 1.5;
    }

    .gallery-search-icon {
        position: absolute;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.9);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2;
        transition: var(--transition);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .gallery-search-icon:hover {
        background: var(--white);
        transform: scale(1.1);
    }

    .gallery-search-icon i {
        color: var(--secondary-color);
        font-size: 1rem;
    }

    /* ========== Video Tour Section ========== */
    .video-section {
        padding: var(--section-padding);
        background: var(--light-bg);
    }

    .video-container {
        max-width: 1000px;
        margin: 0 auto;
        border-radius: var(--border-radius);
        overflow: hidden;
        box-shadow: var(--shadow-hover);
        position: relative;
        aspect-ratio: 16/9;
    }

    .video-container iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

    .video-play-button {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 80px;
        height: 80px;
        background: var(--accent-color);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: var(--transition);
        z-index: 2;
    }

    .video-play-button::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background: var(--accent-color);
        border-radius: 50%;
        animation: pulse 2s infinite;
        z-index: -1;
    }

    .video-play-button i {
        color: var(--white);
        font-size: 1.8rem;
        margin-left: 5px;
    }

    .video-play-button:hover {
        transform: translate(-50%, -50%) scale(1.1);
        background: var(--btn-light-hover);
    }

    .video-description {
        max-width: 800px;
        margin: 30px auto 0;
        text-align: center;
        font-family: var(--secondary-font);
        color: var(--text-medium);
        font-size: 1.1rem;
        line-height: 1.7;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
            opacity: 1;
        }

        100% {
            transform: scale(1.5);
            opacity: 0;
        }
    }

    .btn-primary {
        background-color: var(--accent-color);
        color: var(--white);
        animation: betterPulse 2s ease-in-out infinite;
    }

    .btn-primary:hover {
        background-color: var(--btn-light-hover);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .btn-secondary {
        background-color: transparent;
        color: var(--white);
        border: 2px solid var(--white);
    }

    .btn-secondary:hover {
        background-color: var(--white);
        color: var(--text-dark);
        transform: translateY(-3px);
    }

    .glightbox-clean .gslide-title {
        margin-bottom: 0 !important;
    }

    .glightbox-clean .gslide-description {
        background: bisque !important;
    }

    .glightbox-mobile .glightbox-container .gslide-description {
        padding: 0 !important;
    }

    /* ========== Responsive Styles ========== */
    @media (max-width: 991px) {
        :root {
            --section-padding: var(--section-padding-md);
        }

        .gallery-container {
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        }

        .section-header h2 {
            font-size: 2.2rem;
        }
    }

    @media (max-width: 767px) {
        :root {
            --section-padding: var(--section-padding-sm);
        }

        .gallery-hero {
            height: 50vh;
            min-height: 400px;
        }

        .gallery-container {
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
        }

        .section-header h2 {
            font-size: 2rem;
        }

        .cta-btns {
            flex-direction: column;
            align-items: center;
        }

        .btn {
            width: 100%;
            max-width: 250px;
        }
    }

    @media (max-width: 575px) {
        .gallery-container {
            grid-template-columns: 1fr;
        }

        .gallery-caption {
            transform: translateY(0);
            background: rgba(0, 0, 0, 0.7);
        }

        .section-header h2 {
            font-size: 1.8rem;
        }

        .cta-section h2 {
            font-size: 2rem;
        }
    }