@font-face {
    font-family: 'D-DIN Condensed Bold';
    src: url('D-DINCondensed-Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'D-DIN Condensed';
    src: url('D-DINCondensed.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Acumin';
    src: url('AcuminVariableConcept.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Acumin regular';
    src: url('AcuminVariableConcept.otf') format('opentype');
    font-weight: 150;
    font-style: normal;
}

html, body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html::-webkit-scrollbar{
    display: none;
}

.vertical_scroller{
    height: 100vh;
    height: 100dvh; 
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory; 
    scroll-behavior: smooth;
    scroll-snap-stop: always;
    -ms-overflow-style: none; 
    scrollbar-width: none;
}

.vertical_scroller > .section {
    height: 100vh;
    height: 100dvh; 
    width: 100%;
    scroll-snap-align: start; 
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    position: relative;
}

h2{
    color: rgb(100, 100, 100); 
    font-family: 'D-DIN Condensed', Arial, sans-serif;
    font-weight: normal; 
    text-align: center;
    font-size: 3vw;
    margin: 0;
    position: relative;
    top: 10vh;
}

@media (max-aspect-ratio: 3/4) {
    
    h2 {
        font-size: 7vw;
        padding: 0vw;
        top: 5vh;
    }

    #photo_carousel_page h2{
        font-size: 7vw;
        padding: 0vw;
        top: -5vh;
    }
}

/* Correct selector for the section (ID) so the carousel centers vertically */
#photo_carousel_page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
  flex-direction: column;
}

.photo-carousel {
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* default size (will be overridden by orientation queries) */
  width: 55vw;
  height: 55vw;
    /* Allow vertical page panning but let us handle horizontal pointer drags */
    touch-action: pan-y;
    -ms-touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

/* Portrait / narrow view: swap sizes */
@media (max-aspect-ratio: 3/4) {
  .photo-carousel {
    width: 100vw;
    height: 100vw;
  }
}

/* Track that holds slides */
.photo-track {
  display: flex;
  height: 100%;
  width: 100%;
  /* smoother, GPU-accelerated transition */
    transition: transform 600ms cubic-bezier(.22,.9,.3,1);
  will-change: transform;
  backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.photo-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-drag: none;
}

.photo-slide img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
  display: block;
  transition: opacity 220ms ease;
  align-items: center;
}

/* Navigation buttons */
.photo-prev, .photo-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('Icons/scroll_down-01.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60% auto;
    width: 15vh;
    height: 15vh;
    background-color: transparent;
    pointer-events: all;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 180ms ease;
    opacity: 0.9;
    border: transparent;
}

#Main {
    display: inline-flex;
    position: absolute;
    color: #9e2a23;
    bottom: 10vh;
    right: 7vw;
    font-size: 2.7vh;
    font-weight: 100;
    font-family: 'D-DIN Condensed', Arial, sans-serif;
    letter-spacing: 0.08em;
    align-items: center;
    z-index: 11;
}

@media (max-aspect-ratio: 3/4) {
    .photo-carousel + #Main, #Main.right, #main.right {position: absolute;};
}

#Main.right::after {
    content: '';
    display: inline-block;
    width: 1.5vw;
    height: 1.5vw;
    margin-left: 0.5rem;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%239e2a23' d='M9.29 6.71L13.58 11l-4.29 4.29 1.42 1.42L16.42 11l-5.71-5.71z'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 200ms ease;
}

/* JS-triggered hover class when side button is hovered */
#Main.right.hovering-arrow-right::after {
    transform: translateX(1.5vw);
}

.photo-prev { left: 1vw; transform: translateY(-50%) translateX(-40%) rotate(90deg) scale(1.5); }
.photo-next { right: 1vw; transform: translateY(-50%) translateX(40%) rotate(-90deg) scale(1.5); }

.photo-prev:hover { transform: translateY(-50%) translateX(-46%) rotate(90deg) scale(1.56); }
.photo-next:hover { transform: translateY(-50%) translateX(46%) rotate(-90deg) scale(1.56); }

@media (max-aspect-ratio: 3/4) {
  .photo-prev { left: -20vw; transform: translateY(-40%) rotate(90deg); }
  .photo-next { right: -20vw; transform: translateY(-40%) rotate(-90deg); }
  
  /* Disable hover animation on mobile */
  .photo-prev:hover { transform: translateY(-40%) rotate(90deg); }
  .photo-next:hover { transform: translateY(-40%) rotate(-90deg); }
  .photo-slide img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
  display: block;
  transition: opacity 220ms ease;
  align-items: center;
}
#Main.right::after {
    width: 4vw;
    height: 4vw;
}
}

/* remove unused pseudo-element arrows */
.photo-prev:before, .photo-next:before { display: none !important; }

/* Disable pointer interaction during transition if needed */
.photo-carousel.is-animating { pointer-events: none; }

.scroll_down{
    position: absolute;
    bottom: 0vh;
    z-index: 10;
    
    display: flex; 
    justify-content: center;
    align-items: center;

    width: 100vw; 
    height: 15vh; 
    
    border: none;
    background-color: transparent;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    padding: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.0));
    transition: opacity 0.5s;
    filter: blur(20px);
    opacity: 0;
}

.scroll_down:hover {
    opacity: 1;
}

.scroll-down-icon {
    position: relative;
    bottom: 5vh;
    width: 15vw; 
    height: 2.5vh;
    z-index: 9;

    background-image: url(Icons/scroll_down-01.png); 
    background-repeat: no-repeat;
    background-size: contain; 
    background-position: center;
    background-color: transparent;
    pointer-events: none;
}

.menu_list {
    width: 10px;
    display: flex;
    color:rgb(0, 0, 0);
    font-family: 'Acumin', Arial, sans-serif;
    font-weight: normal; 
    text-align: justify;
    line-height: 1.6;
    list-style: none;
    margin: 0;
    border: none;
    padding: 0px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.7vw;
    background-color: transparent; /* Keep background clear so the nav covers it */
}

/* Position the hamburger button in the top right */
.site-logo{
    width: 8vw;
    height: 5vh;
    position: absolute;
    right: 7vh;
    top: 3vh;
    /* Style the hamburger icon as before */
    background-image: url(Icons/Menu.png);
    background-repeat: no-repeat;
    background-size: contain; 
    background-position: center;
    background-color: transparent;
    pointer-events: all;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0.5;
    border: transparent;
}

.site-logo:hover {
    opacity: 1;
}

/* ... (Include your previous CSS for .hamburger-menu, ::before, and ::after here) ... */


/* --- B. Full-Screen Overlay (Hidden State) --- */
.full-screen-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white; /* White background for the whole page */
    z-index: 99; /* Below the header, above the main content */
    
    /* Initially hide the menu completely */
    visibility: hidden;
    opacity: 0;

    /* Setup Flexbox to center the content */
    display: flex;
    justify-content: center; /* Horizontal center */
    align-items: center;     /* Vertical center */

    transition: opacity 0.3s ease, visibility 0.3s;


}

/* --- C. Open/Active State --- */
.full-screen-nav.is-open {
    visibility: visible;
    opacity: 1;
}

/* --- D. Navigation List Styling (Center Content) --- */
.full-screen-nav ul {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    height: 100vh;
    width: 20vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40vh; 
    align-items: center;
    row-gap: 0vh; /* space items visually without enlarging anchors */
}

.full-screen-nav li {
    margin: 0;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
    justify-content: center;
    padding: 1.6vh 0; /* provide vertical spacing while keeping anchor small */
}

@media (max-aspect-ratio: 3/4) {
    .full-screen-nav li {
        font-size: 1.3em;
    }
}

/* Keep each menu item in-flow but let its expanded content overlay below
   so opening one item doesn't shift the whole centered list. */
.full-screen-nav li.collapsible_list {
    /* keep titles and expanded content in normal flow so expansion pushes siblings */
    position: relative;
    align-items: center;
}

.full-screen-nav li.collapsible_list > .content {
    position: static;
    margin-top: 0.5rem;
    width: 50vw;
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: max-height 0.35s ease;
    background: transparent;
    pointer-events: auto;
}


.menu {
    text-decoration: none;
    color: rgb(200, 200, 200);
    font-size: 2em;
    font-weight: normal;
    font-family: 'D-DIN Condensed', Arial, sans-serif;
    display: inline-block;
    padding: 6px 10px;
    text-align: center;
}

@media (max-aspect-ratio: 3/4) {
    .menu {
        font-size: 1.5em;
        padding: 4px 8px;
    }
}

.menu:hover {
    color: rgb(100, 100, 100)
}


.collapsible_list {
    background-color: transparent;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
}

.active, .collapsible_list:hover {
    background-color: transparent;
}

.collapsible_list:after {
  content: '\002B';
  color: white;
  font-weight: bold;
  float: none;
  margin-left: 5px;
}


.active:after {
  content: "\2212";
}

.content {
    max-height: 0;
    overflow: hidden;
    padding: 0 0px;
    transition: max-height 0.2s ease-out;
    background-color: transparent;
    
}

.content .nav_menu {
    z-index: 90;
    font-family: 'Acumin regular', Arial, sans-serif;
    color: rgb(200, 200, 200);
    font-size: 1.2em;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    
}

@media (max-aspect-ratio: 3/4) {
    .content .nav_menu {
        font-size: 1em;
    }
}

.content .nav_menu:hover {
    color: rgb(100, 100, 100)
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.gallery-item {
    height: 50vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

@media (max-aspect-ratio: 3/4) {
    .gallery-item {
        height: 95vw;
    }
}

.gallery-item img {
    max-width: 50vw;
    max-height: 50vw;
    width: auto;
    height: auto;
    object-fit: cover;
    display: block;
}

@media (max-aspect-ratio: 3/4) {
    .gallery-item img {
        max-width: 95vw;
        max-height: 95vw;
    }
    .scroll-down-icon {
        position: relative;
        top: 20vh;
    }
}

/* Prevent the vertical scroller from snapping the last item back
   by providing extra space at the end and containing overscroll. */
.vertical_scroller::after {
    content: "";
    display: block;
    height: 50vh; /* matches .gallery-item height so last item can center */
    pointer-events: none;
}

/* Avoid cross-axis overscroll behaviors and bouncing that can cause
   unexpected snap-back on some devices. */
.vertical_scroller {
    overscroll-behavior-y: contain;
}

/* Don't snap the gallery section itself; allow natural scrolling inside it */
#photo_gallery {
    scroll-snap-align: none;
    scroll-snap-stop: normal;
}

/* Side navigation button (used on annex pages to return to center) */
.side-button {
    position: fixed;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10svw;
    height: 100vh;
    border: none;
    background-color: transparent;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    padding: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.0));
    transition: opacity 0.5s;
    filter: blur(20px);
    opacity: 0.1;
    z-index: 12;
}
.side-button.right { right: 0; }
.side-button.left { left: 0; }
.side-button:hover { opacity: 1; }
.side-button:after { content: ''; }