/* 
  Custom Fonts
*/
@font-face {
    font-family: 'Sukhumvit Set';
    src: url('font/SukhumvitSet-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Sukhumvit Set';
    src: url('font/SukhumvitSet-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Sukhumvit Set';
    src: url('font/SukhumvitSet-Text.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Sukhumvit Set';
    src: url('font/SukhumvitSet-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Sukhumvit Set';
    src: url('font/SukhumvitSet-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Sukhumvit Set';
    src: url('font/SukhumvitSet-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* 
  Base Styles & Variables 
*/
:root {
    --bg-color: #221616;
    --text-color: #f4ebd9;
    --accent-color: #a3752a;
    --highlight-color: #eb2244;
    --font-heading: 'Sukhumvit Set', sans-serif;
    --font-body: 'Sukhumvit Set', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    background-image: url('sources/images/bg_paper.jpg');
    background-size: cover;
    background-repeat: repeat;
    background-position: top;
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--text-color);
    text-decoration: none;
}

/* 
  Lenis Smooth Scrolling Required CSS
*/
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

/* 
  Section Pages 
*/
.section-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 
  Dot Navigation
*/
.dot-nav {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 999;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.dot::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: var(--accent-color);
    opacity: 0.7;
}

.dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

.dot.active::after {
    border-color: var(--accent-color);
    transform: scale(1.5);
    opacity: 0.5;
}

/* 
  Typography & Utility
*/
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

h2 {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 1.5rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #aaaaaa;
    max-width: 500px;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--accent-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-radius: 0.3rem;
}

.btn:hover {
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
    color: var(--text-color);
}

.btn-filled {
    background-color: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
    font-weight: 600;
    width: fit-content;
}

.btn-filled:hover {
    background-color: var(--highlight-color);
    border-color: var(--highlight-color);
    color: var(--text-color);
}

/* 
  Navigation
*/
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-color);
    /* Main black color */
}

.logo-ext {
    color: var(--highlight-color);
    /* Red color */
    font-size: 0.5em;
    /* Half the size */
}

.menu a {
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bg-color);
    /* Main black color */
    font-weight: 600;
}

/* 
  Hero Banner Section (Section 1)
*/
.hero-banner {
    position: relative;
    z-index: 50;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-image: url('sources/images/bg_paper.jpg');
    background-size: cover;
    background-position: top;
}

.hero-content {
    text-align: center;
    position: relative;
    padding: 0 2rem;
}

.hero-line-vertical {
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, var(--highlight-color), var(--accent-color));
    margin: 0 auto 2rem auto;
    transform-origin: top;
    transform: scaleY(0);
    /* For GSAP Animation */
}

.title-wrapper {
    overflow: hidden;
}

.title-wrapper.mt-sub {
    margin-top: 1rem;
}

.hero-title {
    font-family: var(--font-heading);
    display: inline-block;
    text-align: center;
}

.hero-title img {
    max-width: 90vw;
    /* Prevent it from touching screen edges on mobile */
    max-height: 50vh;
    /* Restrict height to 50% of viewport */
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    opacity: 0;
    /* For GSAP Animation */
    transform: scale(0.8);
    /* For GSAP Animation */
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    font-weight: 600;
    /* Bolded for better readability on gold */
    letter-spacing: 15px;
    color: var(--bg-color);
    /* Black text on gold background */
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(50px);
    /* For GSAP Animation */
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    /* For GSAP Animation */
}

.scroll-text {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--bg-color);
    /* Black text */
    font-weight: 600;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background-color: var(--bg-color);
    /* Black line */
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: var(--highlight-color);
    animation: dropScroll 2s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

@keyframes dropScroll {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(200%);
    }
}

/* 
  Objects Showcase Section
*/
.section-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 131px;
    background-image: url('sources/images/section_bg.png');
    background-repeat: repeat-x;
    background-size: cover;
    background-position: top;
    margin-top: -58px;
    z-index: 1000;
    pointer-events: none;
}

.section-divider-top {
    position: absolute;
    top: 114px;
    left: 0;
    width: 100%;
    height: 131px;
    background-image: url('sources/images/section_bg.png');
    background-repeat: repeat-x;
    background-size: cover;
    background-position: top;
    margin-top: -58px;
    z-index: 1000;
    pointer-events: none;
}



.objects-showcase {
    position: relative;
    padding: 5vh 4rem;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
}

.objects-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Column 1: Image */
.object-image-col {
    width: 100%;
    height: 80vh;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
}

.object-image-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease-in-out;
}

/* Column 2: Details */
.object-details-col {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Row 1: Tabs Grid */
.object-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.object-tab {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.3rem;
    color: var(--text-color);
    padding: 1.5rem 0;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.object-tab:hover {
    border-color: var(--accent-color);
    background: rgba(163, 117, 42, 0.1);
}

.object-tab.active {
    border-color: var(--highlight-color);
    background: var(--highlight-color);
    color: var(--bg-color);
    font-weight: 700;
}

/* Row 2: Info Text */
.object-info {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.object-info h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.object-info p {
    font-size: 1.1rem;
    color: #aaaaaa;
    line-height: 1.6;
    max-width: 90%;
}

.mt-4 {
    margin-top: 2rem;
}

/* 
  Event Calendar Section
*/
.calendar-section {
    padding: 5vh 4rem 15vh 4rem;
    /* Changed background to accent color (gold) */
    background-color: var(--accent-color);
    color: var(--bg-color);
    /* Base text color for this section */
}

.calendar-section-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto 1.5rem auto;
    padding: 2rem 0rem 1rem 0;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    /* Darker border */
}

.calendar-section-header h2 {
    font-size: clamp(1.5rem, 3vw, 3.5rem);
    color: var(--bg-color);
    /* Dark text for contrast */
    margin: 0;
}

.calendar-section-header .btn {
    color: var(--bg-color);
    /* Dark text */
    border-color: var(--bg-color);
    /* Dark border */
    margin-bottom: 0.5rem;
}

.calendar-section-header .btn:hover {
    background-color: var(--bg-color);
    color: var(--accent-color);
}

.calendar-container {
    width: 100%;
    max-width: 1400px;
    min-height: 550px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    background: var(--bg-color);
    /* Dark background */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    /* Stronger shadow to pop */
}

/* Calendar Column */
.calendar-col {
    display: flex;
    flex-direction: column;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.calendar-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin: 0;
    color: #fff;
}

.cal-nav-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-nav-btn:hover {
    background: #fff;
    color: #000;
    transform: scale(1.1);
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: #888;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.cal-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem;
    color: #ddd;
    transition: all 0.2s ease;
    position: relative;
    cursor: default;
}

.cal-day.has-event {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cal-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 15%;
    width: 6px;
    height: 6px;
    background-color: var(--highlight-color);
    border-radius: 50%;
}

.cal-day:not(.empty):hover {
    background: rgba(163, 42, 78, 0.2);
}

.cal-day.today {
    background: var(--highlight-color);
    color: var(--bg-color);
    font-weight: bold;
}

.cal-day.empty {
    visibility: hidden;
}

/* Events Column */
.events-col {
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 3rem;
}

.events-col h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 1rem;
}

/* Scrollbar styling for events */
.events-list::-webkit-scrollbar {
    width: 4px;
}

.events-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.events-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.event-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--highlight-color);
    transition: transform 0.3s ease, background 0.3s ease;
}

.event-card:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.08);
}

.event-date {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
    line-height: 1.3;
}

.event-desc {
    font-size: 0.95rem;
    color: #888;
    margin: 0;
    line-height: 1.5;
}

.no-events {
    color: #888;
    font-style: italic;
}


/* 
  Image Gallery & Activity (Section 4)
*/
.gallery-activity {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0 1rem 0;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    cursor: grab;
}

.gallery-activity::-webkit-scrollbar {
    display: none;
}

.gallery-activity:active {
    cursor: grabbing;
}

.activity-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 0;
}

.ga-info {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0;
    flex-wrap: wrap;
    background: #221616;
    overflow: hidden;
}

.ga-info-left {
    flex: 1;
    min-width: 300px;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.ga-title {
    color: #fff;
    font-size: clamp(2rem, 4vw, 2rem);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.ga-subtitle {
    font-size: 1rem;
    color: #fff;
    margin: 0;
    letter-spacing: 2px;
}

.ga-info-right {
    flex: 1.2;
    min-width: 300px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
}

.ga-info-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 100%;
    background-image: linear-gradient(90deg, #221616, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.ga-desc {
    color: #aaaaaa;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.ga-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.ga-nav-btn {
    background: transparent;
    color: var(--highlight-color);
    font-size: 3rem;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0 1rem;
    z-index: 10;
}

.ga-nav-btn:hover {
    transform: scale(1.2);
}

.ga-images-box {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0;
    background: transparent;
}

.ga-images-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: linear-gradient(180deg, #221616, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.ga-images-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: linear-gradient(0deg, #221616, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.ga-images-wrapper {
    display: flex;
    justify-content: center;
    transform: rotateZ(15deg) scale(1.3);
    width: 120%;
    margin-left: -25%;
    margin-top: -100px;
}

.ga-images-column {
    margin-right: 20px;
    animation: animateGallery var(--duration, 10s) infinite linear;
}

.ga-images-column:hover {
    animation-play-state: paused;
}

.ga-images-column a {
    display: block;
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    transition: all .3s;
}

.ga-images-column a:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px var(--highlight-color);
}

.ga-images-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

@keyframes animateGallery {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.ga-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
    margin-bottom: 3rem;
}

.ga-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ga-dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

.accordion-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 10vh 4rem 20vh 4rem;
    background-color: var(--bg-color);
}

.gallery-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--accent-color);
    margin-bottom: 2rem;
    text-align: center;
}

.gallery {
    max-width: 1400px;
    width: 100%;
    height: 60vh;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.gallery:has(.gallery-panel:hover) .gallery-panel:not(:hover) img {
    filter: grayscale(100%);
}

.gallery-panel {
    flex: 1;
    border-radius: 0.75rem;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s ease-in-out;
    position: relative;
}

.gallery-credit {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    pointer-events: none;
    white-space: nowrap;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.gallery-panel:hover .gallery-credit {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
    /* Shows slightly after expansion starts */
}

.gallery-panel:hover {
    flex: 3;
}

.gallery-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.gallery-panel:nth-child(even) img {
    scale: 1.15;
}

/* 
  Gallery Page Specific Styles (gallery.php)
*/
.gallery-page-container {
    padding-top: 120px;
    /* Space for navbar */
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-color);
    min-height: 100vh;
}

.gallery-hero-banner {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 1400px;
}

.gallery-hero-banner h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-hero-banner p {
    margin: 0 auto;
}

.gallery-layout-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1400px;
    width: 100%;
    gap: 4rem;
    padding: 0 4rem 4rem 4rem;
}

.gallery-sidebar {
    flex: 1 1 25%;
    /* Approx 4/12 minus gap */
    min-width: 250px;
}

.gallery-content {
    flex: 1 1 65%;
    /* Approx 8/12 minus gap */
}

/* Sidebar List */
.province-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    top: 120px;
    /* Sticky positioning to stay in view */
}

.province-item {
    padding: 1.2rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    color: var(--text-color);
    background: transparent;
}

.province-item:hover {
    background: rgba(163, 117, 42, 0.1);
    border-color: var(--accent-color);
    padding-left: 2.5rem;
}

.province-item.active {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
    font-weight: 700;
}

/* Masonry Grid */
#gallery-province-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

.masonry-grid {
    column-count: 2;
    column-gap: 1.5rem;
    transition: opacity 0.3s ease-in-out;
}

@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 3;
    }
}

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

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.gallery-panel:nth-child(odd) img {
    scale: 1.25;
}


/* 
  Showcase Sections 
*/
.showcase {
    padding: 15vh 4rem;
    position: relative;
}

.showcase .container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 5rem;
}

.showcase.reverse .container {
    /* Since we are using grid, we can swap the order of the columns for the reverse section */
    direction: rtl;
}

.showcase.reverse .container>* {
    direction: ltr;
    /* Reset text direction inside */
}

.text-block {
    z-index: 2;
}

.image-block {
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    position: absolute;
    top: -15%;
    left: 0;
}

.image-wrapper.small {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 50vh;
    z-index: 3;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* 
  Full Parallax Image Section
*/
.full-parallax {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    filter: brightness(0.5);
}

.center-text {
    position: relative;
    z-index: 2;
    color: #fff;
}

/* 
  Footer
*/
.footer {
    padding: 10vh 4rem;
    text-align: center;
    background-color: var(--bg-color);
    background-image: url('sources/images/bg_paper.jpg');
    background-size: cover;
}

.footer-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--bg-color);
}

.email-link {
    display: block;
    font-size: clamp(2rem, 5vw, 5rem);
    font-weight: 700;
    margin-bottom: 3rem;
    transition: color 0.3s;
}

.email-link:hover {
    color: #777;
}

.network-logos {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 2rem 0;
}

.network-logo img {
    max-height: 80px;
    max-width: 180px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.network-logo img:hover {
    transform: scale(1.15);
}

.copyright {
    font-size: 0.8rem;
    color: #555;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }

    .menu {
        display: none;
        /* Hide for simplicity on mobile in this demo */
    }

    .showcase .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .showcase.reverse .container {
        direction: ltr;
        /* Reset to normal order on mobile */
    }

    .image-wrapper {
        height: 50vh;
    }

    .image-wrapper.small {
        bottom: -5%;
        right: -5%;
        width: 60%;
        height: 40vh;
    }

    .showcase {
        padding: 10vh 2rem;
    }

    .objects-showcase {
        padding: 10vh 2rem;
    }

    .objects-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .object-image-col {
        height: 40vh;
    }

    .object-details-col {
        gap: 2rem;
    }

    .object-tabs {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .object-tab {
        padding: 1rem 0;
        font-size: 1.2rem;
    }

    .calendar-section {
        padding: 10vh 2rem;
    }

    .calendar-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 2rem;
    }

    .events-col {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-top: 2rem;
    }

    .cal-day {
        font-size: 0.9rem;
    }

    .accordion-section {
        padding: 10vh 2rem;
    }

    .accordion-container {
        height: 60vh;
        width: 100%;
    }

    .panel {
        margin: 0 2px;
        border-radius: 12px;
    }

    .panel-content {
        padding: 15px 5px;
    }
}

@media (max-width: 480px) {
    .accordion-container {
        height: 50vh;
        flex-direction: column;
        /* Stack vertically on very small screens for better UX */
    }

    .panel {
        margin: 2px 0;
    }

    .panel.active .panel-content {
        transform: translateY(-50%);
        top: 50%;
        bottom: auto;
    }
}