/* ================= BASIC RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #faf8f5;
    color: #292421;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img,
video {
    width: 100%;
    display: block;
}

/* ================= NAVBAR & HEADER ================= */
.navbar {
    height: 82px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 2px solid #b58a4b;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
    color: #8d6835;
}

.logo div {
    display: flex;
    flex-direction: column;
}

.logo strong {
    font-size: 15px;
    letter-spacing: 2px;
}

.logo small {
    font-size: 9px;
    letter-spacing: 2px;
    color: #9a7950;
}

/* Desktop Navigation */
.nav-links {
    display: flex;
    gap: 15px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
    color: #1a1a1a;
    text-decoration: none;
}

/* Highlights the text gold/orange on hover AND when scrolling (Matches JS) */
.nav-links a:hover,
.nav-links a.active,
.mobile-menu a:hover,
.mobile-menu a.active {
    color: #a87939 !important; 
}

/* Language Switcher */
.language-switch {
    display: flex;
    border: 1px solid #ddd2c4;
    border-radius: 30px;
    overflow: hidden;
}

.language {
    border: none;
    background: transparent;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 12px;
}

.language.active {
    background: #292421;
    color: white;
}

/* Buttons */
.nav-button,
.primary-button {
    background: #292421;
    color: white;
    padding: 12px 20px;
    border-radius: 3px;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
}

.nav-button:hover,
.primary-button:hover {
    background: #a87939;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-button {
    display: none;
    border: none;
    background: transparent;
    font-size: 25px;
    cursor: pointer;
}

/* ================= MOBILE MENU ================= */
.mobile-menu {
    display: none;
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    background: white;
    padding: 25px 6%;
    z-index: 999;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    gap: 18px;
}

/* JavaScript toggles this class when hamburger is clicked */
.mobile-menu.active {
    display: flex;
}

.mobile-menu > a {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    transition: 0.3s;
    text-decoration: none;
}

.mobile-language {
    display: flex;
    gap: 5px;
    width: fit-content;
    border: 1px solid #ddd2c4;
    border-radius: 30px;
    overflow: hidden;
}

.mobile-menu .nav-button {
    width: fit-content;
}

.mobile-menu .language {
    background: transparent;
}

.mobile-menu .language.active {
    background: #292421;
    color: white;
}

.mobile-menu a.nav-button,
.mobile-menu a.primary-button {
    color: #ffffff !important;
}

/* ================= HERO ================= */
.hero {
    min-height: 720px;
    display: flex;
    align-items: center;
    padding: 80px 8%;
    position: relative;
    background:
        linear-gradient(
            90deg,
            rgba(25, 20, 18, 0.82),
            rgba(25, 20, 18, 0.40),
            rgba(25, 20, 18, 0.15)
        ),
        url("../images/hero.jpg");
    background-size: cover;
    background-position: center;
    background-color: #51453c;
    color: white;
}

.hero-content {
    max-width: 700px;
}

.hero-label,
.section-label {
    color: #b99560;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(45px, 6vw, 76px);
    line-height: 1.08;
    margin-bottom: 25px;
}

.hero-description {
    max-width: 560px;
    font-size: 17px;
    color: #eee5dc;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.secondary-button {
    padding: 11px 20px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: white;
    font-size: 13px;
    transition: 0.3s;
}

.secondary-button:hover {
    background: white;
    color: #292421;
}

.hero-info {
    position: absolute;
    right: 7%;
    bottom: 40px;
    display: flex;
    gap: 35px;
    padding: 18px 25px;
    background: rgba(20, 17, 15, 0.65);
    backdrop-filter: blur(8px);
    border-left: 2px solid #b99560;
}

.hero-info div {
    display: flex;
    flex-direction: column;
}

.hero-info strong {
    color: #b99560;
}

.hero-info span {
    font-size: 12px;
}

/* ================= COMMON SECTION ================= */
.capacity-section,
.amenities-section,
.gallery-section {
    padding: 100px 8%;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 55px;
}

.section-heading h2 {
    font-family: Georgia, serif;
    font-size: clamp(35px, 4vw, 52px);
    line-height: 1.15;
    margin-bottom: 15px;
}

.section-heading > p:last-child {
    color: #746b64;
}

/* ================= CAPACITY & AMENITIES ================= */
.capacity-section {
    background: #fff;
}

.capacity-grid,
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.capacity-card {
    padding: 35px 25px;
    border: 1px solid #e8dfd5;
    transition: 0.3s;
}

.capacity-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
}

.card-icon {
    font-size: 25px;
    color: #b58a4b;
    margin-bottom: 15px;
}

.capacity-card h3 {
    font-family: Georgia, serif;
    font-size: 25px;
    margin-bottom: 5px;
}

.capacity-card p {
    color: #777;
    font-size: 14px;
}

.amenities-section {
    background: #f1ece5;
}

.amenity-card {
    padding: 35px 25px;
    background: white;
}

.amenity-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid #d6b987;
    border-radius: 50%;
    color: #a87939;
    margin-bottom: 20px;
}

.amenity-card h3 {
    margin-bottom: 10px;
}

.amenity-card p {
    font-size: 14px;
    color: #777;
}

/* ================= GALLERY ================= */
.gallery-section {
    background: #fff;
}

.gallery-heading {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
}

.gallery-heading > p {
    max-width: 350px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Uniform frame size for all gallery items, images, videos & posters */
.gallery-item,
.gallery-item.large {
    grid-column: span 1;
    grid-row: span 1;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #292421;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.4s ease;
    cursor: pointer;
}

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

/* Clean Play Button Badge on Video Thumbnails */
.gallery-item:has(video)::after,
.space-image:has(video)::after,
.facility-image:has(video)::after {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(25, 20, 18, 0.72);
    color: #ffffff;
    border: 2px solid #b99560;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    padding-left: 3px;
    pointer-events: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    transition: 0.3s ease;
}

.gallery-item:has(video):hover::after,
.space-image:has(video):hover::after,
.facility-image:has(video):hover::after {
    background: #a87939;
    border-color: #ffffff;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ================= LIGHTBOX & ACTIVE MEDIA POPUP ================= */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.88);
    align-items: center;
    justify-content: center;
}

/* Original aspect ratio (16:9, 9:16, etc.) preserved without taking the full screen */
.lightbox-overlay img,
.lightbox-overlay video {
    width: auto !important;
    height: auto !important;
    max-width: 80vw !important;
    max-height: 80vh !important;
    object-fit: contain !important;
    border-radius: 8px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
    background: #000;
}

/* Higher specificity so .gallery-item, .space-image, and .facility-image never crop 1920x1080 or 9:16 videos on laptop */
.gallery-item video.playing-popup,
.space-image video.playing-popup,
.facility-image video.playing-popup,
video.playing,
video.active-video,
video.playing-popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: auto !important;
    max-width: 82vw !important;
    max-height: 82vh !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    z-index: 99999 !important;
    background: #000 !important;
    border-radius: 8px !important;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.88), 0 10px 35px rgba(0, 0, 0, 0.7) !important;
}

/* Prevent parent container from clipping or trapping the fixed popup video */
.gallery-item:has(video.playing-popup),
.space-image:has(video.playing-popup),
.facility-image:has(video.playing-popup) {
    overflow: visible !important;
    transform: none !important;
    z-index: 99999 !important;
}

/* Hide the ▶ thumbnail badge while the video is actively playing in popup */
.gallery-item:has(video.playing-popup)::after,
.space-image:has(video.playing-popup)::after,
.facility-image:has(video.playing-popup)::after {
    display: none !important;
}

/* Native fullscreen video safeguard so 16:9 and 9:16 videos are never cropped */
video:fullscreen,
video:-webkit-full-screen {
    width: auto !important;
    height: auto !important;
    max-width: 95vw !important;
    max-height: 95vh !important;
    margin: auto !important;
    object-fit: contain !important;
    background: #000;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover {
    color: #ccc;
}

/* ================= ABOUT US PAGE ================= */
.about-page-hero {
    min-height: 480px;
    display: flex;
    align-items: center;
    padding: 80px 8%;
    background:
        linear-gradient(
            rgba(30, 25, 22, 0.70),
            rgba(30, 25, 22, 0.70)
        ),
        url("../images/about-bg.jpg");
    background-size: cover;
    background-position: center;
    color: white;
}

.about-page-hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(45px, 6vw, 75px);
    line-height: 1.1;
    margin-bottom: 20px;
}

.about-page-hero p:last-child {
    color: #eee;
    font-size: 18px;
}

.about-story {
    padding: 100px 8%;
    background: white;
}

.about-story .section-heading {
    max-width: 800px;
}

.person-section {
    padding: 100px 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    background: #f1ece5;
}

.person-section.reverse {
    background: white;
}

.person-image {
    height: 500px;
    background: #1f1b19;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.person-image img,
.person-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-content {
    max-width: 550px;
}

.person-content h2 {
    font-family: Georgia, serif;
    font-size: 48px;
    margin-bottom: 5px;
}

.person-content h3 {
    color: #a87939;
    margin-bottom: 20px;
}

.person-content p:last-child {
    color: #746b64;
}

.achievements {
    padding: 100px 8%;
    background: #fff;
}

.achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.achievement-card {
    padding: 40px 25px;
    border: 1px solid #e8dfd5;
    text-align: center;
}

.achievement-card strong {
    display: block;
    font-family: Georgia, serif;
    font-size: 42px;
    color: #a87939;
    margin-bottom: 10px;
}

.achievement-card span {
    color: #746b64;
    font-size: 14px;
}

/* ================= SPACE & FACILITY PAGES ================= */
.space-page {
    min-height: calc(100vh - 82px);
    padding: 70px 8%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.space-content {
    max-width: 800px;
    margin: 80px auto;
    text-align: center;
}

.space-content h1 {
    font-size: 48px;
    margin: 15px 0;
    letter-spacing: 1px;
}

.space-content p {
    max-width: 650px;
    margin: 0 auto;
    color: #6d625b;
    font-size: 16px;
}

.space-details {
    max-width: 650px;
    margin: 45px auto 0;
    text-align: left;
    padding: 25px;
    background: white;
    border: 1px solid #eee5da;
}

.space-details h2 {
    font-size: 24px;
    margin-bottom: 18px;
}

.space-details ul,
.facility-details-box ul {
    padding-left: 22px;
}

.space-details li,
.facility-details-box li {
    margin-bottom: 10px;
    color: #6d625b;
    line-height: 1.7;
}

.space-gallery {
    padding: 80px 8% 100px;
    background: #fff;
}

.space-gallery-grid {
    max-width: 1200px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Identical frame sizes for space images, videos & posters */
.space-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #eae3dc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
}

.space-image img,
.space-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.space-image:hover img,
.space-image:hover video {
    transform: scale(1.03);
}

/* Clickable Cards & Facilities */
.clickable-card,
.facility-clickable {
    position: relative;
    cursor: pointer;
    color: inherit;
    display: block;
    text-decoration: none;
}

.clickable-card:hover,
.facility-clickable:hover {
    border-color: #b58a4b;
    transform: translateY(-6px);
}

.card-link,
.facility-card-link {
    display: block;
    margin-top: 18px;
    color: #a87939;
    font-size: 13px;
    font-weight: bold;
}

.facilitiesMainDescription {
    max-width: 650px;
}

.facility-detail-section {
    padding: 100px 8%;
    background: #fff;
}

.facility-detail-section.alternate {
    background: #f1ece5;
}

.facility-detail-content {
    max-width: 1100px;
    margin: auto;
}

.facility-detail-content .section-heading {
    max-width: 750px;
    margin-bottom: 45px;
}

.facility-details-box {
    max-width: 750px;
    padding: 35px;
    background: #f8f5f1;
    border: 1px solid #e8dfd5;
}

.facility-detail-section.alternate .facility-details-box {
    background: white;
}

.facility-details-box h3 {
    font-family: Georgia, serif;
    font-size: 25px;
    margin-bottom: 20px;
}

.facility-gallery {
    max-width: 1200px;
    margin: 70px auto 0;
}

.facility-gallery-heading {
    margin-bottom: 30px;
}

.facility-gallery-heading h3 {
    font-family: Georgia, serif;
    font-size: 30px;
    margin-top: 8px;
}

.facility-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Identical frame sizes for facility images, videos & posters */
.facility-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #eae3dc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
}

.facility-image img,
.facility-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    cursor: pointer;
}

.facility-image:hover img,
.facility-image:hover video {
    transform: scale(1.03);
}

/* ================= SPECIAL FACILITIES ================= */
.special-facilities-section {
    padding: 80px 8%;
    background-color: #faf8f5;
}

.sf-bullet-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-top: 20px;
}

.sf-bullet-list li {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 12px;
    color: #333;
}

/* ================= BACK BUTTON ================= */
.back-button-container {
    padding: 20px 6% 0 6%;
}

.back-button {
    display: inline-flex;
    align-items: center;
    background: #292421;
    color: #ffffff !important;
    padding: 8px 16px;
    border: 1px solid #ddd2c4;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
    cursor: pointer;
}

.back-button:hover {
    background: #a87939;
    color: white;
}

/* ================= BOOKING CALENDAR ================= */
.calendar-wrapper-section {
    padding: 80px 8%;
    background: #faf8f5;
    display: flex;
    justify-content: center;
}

.calendar-card {
    background: #ffffff;
    width: 100%;
    max-width: 820px;
    padding: 40px;
    border: 1px solid #e8dfd5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.calendar-controls {
    display: flex;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 160px;
}

.control-group label {
    font-size: 13px;
    font-weight: bold;
    color: #8d6835;
    letter-spacing: 1px;
}

.control-group select {
    padding: 10px 14px;
    border: 1px solid #ddd2c4;
    font-size: 15px;
    background: #fff;
    color: #292421;
    cursor: pointer;
    outline: none;
}

.calendar-header-title {
    text-align: center;
    margin-bottom: 25px;
}

.calendar-header-title h3 {
    font-family: Georgia, serif;
    font-size: 26px;
    color: #292421;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-weekday {
    text-align: center;
    font-weight: bold;
    font-size: 13px;
    padding: 12px 4px;
    background: #f1ece5;
    color: #292421;
}

.calendar-day-box {
    min-height: 80px;
    border: 1px solid #e8dfd5;
    padding: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    transition: 0.2s;
}

.calendar-day-box.empty {
    background: #fcfbf9;
    border-color: transparent;
}

.day-num {
    font-weight: 600;
    font-size: 14px;
    color: #292421;
}

.calendar-day-box.is-booked {
    background: #e6f4ea;
    border-color: #34a853;
}

.calendar-day-box.is-booked .day-num {
    color: #137333;
}

.booked-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: white;
    font-size: 12px;
    font-weight: bold;
    margin: 5px auto 0 auto;
}

.badge-afternoon {
    background-color: #006400; 
}

.badge-night {
    background-color: #8b0000; 
}

.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap; 
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.legend-item .booked-badge {
    margin: 0; 
}

.legend-box {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid #ddd2c4;
}

.legend-box.booked-box {
    background: #e6f4ea;
    border-color: #34a853;
    color: #137333;
    font-weight: bold;
}

.legend-box.available-box {
    background: #ffffff;
}

.calendar-notice {
    margin-top: 20px;
    font-size: 13px;
    color: #746b64;
    background: #faf8f5;
    padding: 14px 18px;
    border-left: 3px solid #b58a4b;
}

/* ================= CONTACT & FOOTER ================= */
.contact-section {
    padding: 120px 8%;
    text-align: center;
    background:
        linear-gradient(
            rgba(35, 29, 25, 0.88),
            rgba(35, 29, 25, 0.88)
        ),
        url("../images/contact-bg.jpg");
    background-size: cover;
    background-position: center;
    color: white;
}

.contact-content {
    max-width: 700px;
    margin: auto;
}

.contact-section h2 {
    font-family: Georgia, serif;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.15;
    margin-bottom: 20px;
}

.contact-section p:not(.section-label) {
    color: #ddd;
    margin-bottom: 30px;
}

.contact-details-section {
    background-color: #2c2a26;
    color: #f4ede4;
    padding: 60px 5%;
}

.contact-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.contact-info-box h3 {
    color: #d1b88e;
    margin-bottom: 30px;
    font-size: 2rem;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.contact-item .icon {
    font-size: 1.5rem;
}

.contact-item a {
    color: #f4ede4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #d1b88e;
}

.whatsapp-link {
    color: #25D366 !important;
    font-weight: bold;
}

.footer {
    padding: 35px 8%;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    background: #1f1b19;
    color: white;
    font-size: 13px;
}

.footer strong {
    letter-spacing: 1px;
}

.footer p {
    color: #aaa;
}

/* ================= MEDIA QUERIES (MOBILE RESPONSIVENESS) ================= */
@media (max-width: 900px) {
    /* Hide desktop nav */
    .nav-links,
    .nav-actions .language-switch,
    .nav-actions .nav-button {
        display: none;
    }

    .nav-actions {
        display: flex;
        align-items: center;
    }

    .menu-button {
        display: block !important;
        background: transparent;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #333;
    }

    /* Grids & Layouts */
    .capacity-grid,
    .amenities-grid,
    .achievement-grid,
    .space-gallery-grid,
    .facility-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .person-section {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .person-section.reverse {
        direction: ltr;
    }

    .hero-info {
        position: static;
        margin-top: 60px;
    }

    .hero {
        min-height: 650px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Padding Adjustments */
    .space-page {
        min-height: calc(100vh - 70px);
        padding: 40px 6%;
    }
    .space-content {
        margin: 60px auto 40px;
    }
    .space-content h1 {
        font-size: 36px;
    }
    .space-content p {
        font-size: 15px;
    }
    .space-gallery {
        padding: 60px 6% 70px;
    }
    .space-gallery-grid {
        margin-top: 30px;
        gap: 15px;
    }
    .space-details {
        padding: 20px;
        margin-top: 35px;
    }
    .space-details h2 {
        font-size: 21px;
    }
    .back-button {
        padding: 9px 15px;
    }

    .facility-detail-section {
        padding: 70px 6%;
    }
    .facility-details-box {
        padding: 25px;
    }
    .facility-gallery {
        margin-top: 50px;
    }
    .facility-gallery-grid {
        gap: 12px;
    }
    .facility-gallery-heading h3 {
        font-size: 25px;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr; 
    }
    .contact-map-box iframe {
        min-height: 300px;
    }
}

@media (max-width: 600px) {
    .mobile-menu {
        top: 70px;
        height: auto; 
    }
    
    .navbar {
        height: 70px;
        top: 0;
    }

    .hero {
        padding: 60px 6%;
    }
    .hero h1 {
        font-size: 43px;
    }
    .hero-info {
        width: 100%;
        gap: 15px;
        justify-content: space-between;
    }

    .capacity-section,
    .amenities-section,
    .gallery-section {
        padding: 70px 6%;
    }

    .capacity-grid,
    .amenities-grid,
    .gallery-grid,
    .achievement-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .gallery-item.large,
    .space-image,
    .facility-image {
        grid-row: auto;
        height: 240px;
    }

    .lightbox-overlay {
        padding: 20px;
    }

    .lightbox-overlay img,
    .lightbox-overlay video,
    .gallery-item video.playing-popup,
    .space-image video.playing-popup,
    .facility-image video.playing-popup,
    video.playing,
    video.active-video,
    video.playing-popup {
        max-width: 90vw !important;
        max-height: 78vh !important;
    }

    .gallery-heading {
        display: block;
    }

    .footer {
        flex-direction: column;
    }

    .about-page-hero {
        min-height: 400px;
    }
    .person-section {
        padding: 70px 6%;
    }
    .person-image {
        height: 380px;
    }

    .facility-detail-section {
        padding: 60px 6%;
    }
    .facility-details-box {
        padding: 20px;
    }
    .facility-details-box h3 {
        font-size: 21px;
    }
    .facility-details-box li {
        font-size: 14px;
    }
    .facility-gallery-grid,
    .space-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Past dates: dimmed, strikethrough, unclickable */
.calendar-day-box.is-past {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
    pointer-events: none;
}
/* Centered Play Icon on Video Thumbnails */
.gallery-item:has(video)::after,
.space-image:has(video)::after,
.facility-image:has(video)::after {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding-left: 4px;
    pointer-events: none; /* Lets your tap pass right through to the video */
    transition: transform 0.3s ease, background 0.3s ease;
}

.gallery-item:has(video):hover::after,
.space-image:has(video):hover::after,
.facility-image:has(video):hover::after {
    background: #a87939;
    transform: translate(-50%, -50%) scale(1.1);
}
/* ================= VIDEO POPUP CUT (X) BUTTON ================= */
.video-close-btn {
    display: none;
    position: fixed;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 45px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    z-index: 100000;
    user-select: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.video-close-btn:hover {
    color: #ccc;
}

.video-close-btn.active {
    display: block;
}

@media (max-width: 600px) {
    .video-close-btn {
        top: 18px;
        right: 25px;
        font-size: 42px;
    }
}