/* Global reset of margins and padding by default */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Includes padding in width calculations */
}


::-webkit-scrollbar {
    width: 10px;
    }

::-webkit-scrollbar-track {
   background-color: rgb(255, 254, 250);
   border-radius: 0;
}

::-webkit-scrollbar-thumb {
  background: #b9b9b9;      /* Color of the draggable bar */
  border-radius: 2px;         /* Removes all rounding */
  height:auto;
  }

 
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

header {
    position: fixed; /* Stays relative to the screen */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99; /* Stays above the cover photo and slider */
    transition: transform 0.5s ease-in-out; /* Smooth slide effect */
    background: transparent;
    padding: 20px 0;
}

/* This class will be added by JavaScript when scrolling down */
.header-hidden {
    transform: translateY(-100%); /* Slides the header up and out of view */
}

.projects-masonry {
  padding-top:20px;
  }


/* Ensure the logo and menu are visible against the photo */
#main-logo, #lang-switcher, .menu-icon-container .bar {
    filter: drop-shadow(0px 0px 5px rgba(0,0,0,0.5)); /* Adds readability */
}

/* TEXT STYLES AND LANGUAGE SWITCHING */
/* 1. Base styles for localized content */
/* ---  DEFAULT (ENGLISH) FONTS --- */
:root {
    --header-font: 'Cantarell', sans-serif;
    --body-font: 'Cantarell', sans-serif;
}



.lang-text-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 1.2rem;
    color: #6e6e6e;
    transition: color 0.3s ease;
    font-family: var(--header-font);
    text-transform: uppercase;
    align-self:flex-start;
    }

    

.lang-text-btn:hover {
    color: #181818;
}

html[lang="ka"] .lang-text-btn {
    font-family: var(--body-font); 
    }


    
/* --- 2. GEORGIAN FONT OVERRIDES --- */

html[lang="ka"] {
    /* Header font (all caps style) */
    --header-font: 'Nostalgia', 'BPG Arial', sans-serif;
        
    /* Body font */
    --body-font: 'Nostalgia', 'TBC Sans', sans-serif;
}


#menu-nav a {

    width: fit-content;
    -webkit-font-smoothing: antialiased;
    transform: translateZ(0);
    /* Use the variable defined above */
    font-family: var(--header-font);    
    font-size: 1.1rem;
}

/* MENU SPACERS */

.menu-spacer {
    height: 40px;       /* The size of the gap */
    pointer-events: none; /* Mouse ignores this entirely */
    width: 100%;        /* Ensures it takes its own line */
}

.menu-spacer2 {
    height: 60px;       /* The size of the gap */
    pointer-events: none; /* Mouse ignores this entirely */
    width: 100%;        /* Ensures it takes its own line */
}

/* --- 3. APPLY VARIABLES TO ELEMENTS --- */
/* The body takes full height to push footer down */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--body-font);
    line-height: 1.6;
    background-color: rgb(255, 254, 250);
}

/* When overlays/menus are open, lock the page scroll */
body.no-scroll {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

#main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

main {    
    flex: 1; /* This pushes the footer to the bottom of the screen */       
}

h1, h2, h3, .menu-item {
    font-family: var(--header-font);    
}

/* LOGO STYLES AND FONT IMPORT */

@font-face {
  font-family: 'Cantarell'; /* Name you will use in your styles */
  src: url("/assets/fonts/cantarell-regular.woff2") format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Improves loading performance */
}

@font-face {
  font-family: 'Nostalgia'; /* Name you will use in your styles */
  src: url("/assets/fonts/bpg-nostalgia.woff2") format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Improves loading performance */
}

@font-face {
  font-family: 'Bpg-nino-caps'; /* Name you will use in your styles */
  src: url("/assets/fonts/bpg-nino-medium-caps.woff2") format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* Improves loading performance */
}

@font-face {
  font-family: 'Bpg-nino-bold'; /* Name you will use in your styles */
  src: url("/assets/fonts/bpg_nino_mtavruli_normal.woff2") format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap; /* Improves loading performance */
}

#full-logo {
  /* Minimum: 200px, Fluid: 15% of screen width, Maximum: 350px */
  width: clamp(200px, 15%, 350px);
  height: auto;/* Maintains aspect ratio automatically */
  margin-top: 1rem;
  margin-left: 1rem;
}

#full-logo:hover {
    scale: 102%;
    transition: .2s;
}

.header-container {
  display: flex;
  justify-content:space-between;
}

/* Hamburger Button Container */
.menu-btn {   
    margin-top: 0.8rem;
    margin-right: 1rem;
    z-index: 100;
}

.menu-btn:hover {
    cursor: pointer;
    scale: 110%;
    transition: .2s;
}

/* Hamburger Button Structure */

.bar1, .bar2, .bar3 {
  width: 35px;
  height: 2px;
  background-color: #333;
  margin: 8px 0;
  transition: 0s;
}

/* Hamburger Button Change on Click */

.change .bar1 {transform: translate(0, 9px) rotate(-45deg);}

.change .bar2 {opacity: 0;}

.change .bar3 {transform: translate(0, -11px) rotate(45deg);}

/* Menu curtain style */
.overlay {
  height: 0;
  width: 100%;
  position: fixed;
  z-index: 10; /* Ensure it's above other content */
  top: 0;
  left: 0;
  background-color: rgba(255,254,250);
  overflow-y: auto;
  max-height: 100vh;
  transition: 0s ease-in-out;
}

/* When the menu is open, cover the full viewport */
.overlay.overlay-curtain {
  height: 100vh;
}

/* Active state triggered by JavaScript */
.overlay-curtain {
  padding-top: 4rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.overlay > .overlay-curtain {
  position: relative;
}

/* Research & Material Studies layout */
.r\&m-studies-container {
  max-width: 1440px;
  margin: 120px auto 0;
  padding: 0 1.5rem;
}

/* Float image with wrapped text */
.rms-image-float {
  float: left;
  width: 20%;
  max-width: 20%;
  height: auto;
  margin: 0 1.5rem 1rem 0;
}

/* Three-column layout for duplicated Research & Material Studies group */
.rms-three-column {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
  max-height: 250px;
  overflow: hidden;
}

.rms-three-column .rms-cell img {
  width: 100%;
  height: auto;
  display: block;
}

/* Align Menu Links to the Left */

.nav-list {
  font-family: 'Cantarell';
  font-size: 1.2rem;
  line-height:2rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 240px;
}

.overlay a {
  padding: 0px;
  text-decoration: none;
  color: #6e6e6e;
  display: inline-block;
  transition: 0.3s;  
}

.overlay a:hover, .overlay a:focus {
  color: #181818;
}

/* Highlight current page in overlay menu */
.overlay a.is-active {
  color: #181818;
}

/* IMAGE CAROUSEL STYLING */

/* Swiper needs these to calculate correctly */
.swiper {
    overflow: hidden;
    position: relative;
}

.swiper-wrapper {
    display: flex;
    transition-property: transform; /* Let Swiper handle the timing */
}

/* Allow pinch-zoom even on Swiper carousels */
.swiper-horizontal {
  touch-action: pan-y pinch-zoom;
}

.swiper-slide-zoomed {
  touch-action: auto;
}

.swiper-wrapper-exhib{
  display: flex;
  transition-property: transform; /* Let Swiper handle the timing */
  max-width: 1440px;
  justify-content: space-between;
}

/* Ensure your slide stays 50% as requested */
.slide {
    flex-shrink: 0; /* Prevents slides from squishing */
    width: 50%;
    /* Keep your existing padding/aspect-ratio */
}

/* Hide the default Swiper dots if they appear, 
   or style the swiper-pagination-bullet to match your .dot style */
.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #dddddd;
    opacity: 1; /* Swiper defaults to 0.2 opacity */
    margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
    background: #333 !important;
}

.slider-outer {
    display: block;
    align-items: center;
    justify-content: center;
    max-width: 1440px; /* Adjust to your needs */
    margin: 40px auto 0 auto;
    gap: 0px; /* Space between arrows and images */
}

/* Extra spacing between interiors header and slider */
.project-header-int + .slider-outer {
  margin-top: 120px; /* 40px base + 100px extra */
}

.slider-container {
    overflow: hidden;
    width: 100%; /* This will hold exactly 2 images */
    border-radius: 8px;    
}

.collectable-page .slider-outer {
    max-width: min(1440px, calc(100vw - 100px));
    width: 100%;
    margin: 100px auto 0 auto;
}

.collectable-page .slide {
    aspect-ratio: 16 / 11;
}

.collectable-page .carousel-nav-controls {
    margin-bottom: 47px;
}

.slider-track {
    display: flex;
    flex-wrap: nowrap;
    width: auto;
    height: auto;
    pointer-events: none !important;        
}

/* Prevent default browser ghosting when clicking/dragging images */
.slider-track img,
.slider-track video {
    width: 100%;
    height: 100%;
    object-fit: contain;     /* Show full image without cropping */
    display: block;
    /* Ensure they can be clicked / dragged nicely */
    user-select: none;
    -webkit-user-drag: none;
    /* Allow native pinch-zoom while still supporting swipe */
    touch-action: pan-y pinch-zoom;
}

/* National Wine Agency: make 3rd slide image fill height and crop width if needed, with space on right */
.slider-track img[src*="national-wine-agency-general-plan-by-idaaf-architects-3"] {
    height: 100%;
    width: 100%;
    object-fit: cover;
    box-sizing: border-box;
    padding-right: 16px; /* visual gap to next image */
}

.slider-track img,video:hover {
    cursor:pointer;
    pointer-events: auto;        
}

.slide {
    pointer-events: auto;
    flex: 0 0 50%; /* EXACTLY 2 images per view */
    width: 50%;
    aspect-ratio: 16 / 9; /* Keeps images consistent height */
    object-fit: cover;
    box-sizing: border-box;
    padding: 0 5px; /* Tiny gap between the two images if desired */    
}

/* Minimalist Navigation Buttons */
.nav-btn {
    position: static;
    background: none;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 18px;
    transition: 0.3s;    
}

.carousel-nav-controls {
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center;     /* Center vertically */
    gap: 40px;               /* Space between arrows and dots */
    margin-top: 30px;        /* Gap between image and buttons */
    width: 100%;    
    }

.nav-btn:hover {
    background: #bebebe;
}

/* DOTS */

/* 2. The Individual Dot */
.dot {
    width: 8px !important;
    height: 8px !important;
    background: #dddddd !important; 
    border-radius: 50%;
    margin: 0 4px !important;    /* Space between dots */
    display: inline-block !important; /* Keep them in a row */
    opacity: 1 !important;
    transition: transform 0.3s, background 0.3s, left 0.3s !important;
    /* Remove position: absolute; let Swiper's internal wrapper move them */
}

/* 3. The scaling illusion */
.dot.active {
    background: #333333 !important;
    transform: scale(1.4) !important;
}

#dotsContainer{
  padding-top:6px;
  position: relative;          /* needed for dynamic bullets */
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  height: 14px;                /* ensures visible area */
  min-width: 60px;
  max-width: 80px !important;
}

/* dynamic bullets mode (Swiper adds these classes) */
#dotsContainer.swiper-pagination-bullets-dynamic {
    position: relative !important;
    /* (6px dot + 6px total margins) * 5 dots = 60px */
    width: 90px !important; 
    max-width: 90px !important;
    min-width: 90px !important; 
    height: 16px !important;
    overflow: hidden !important; 
    display: block !important; /* Block is safer for Swiper's internal math */
    flex-shrink: 0 !important;   /* Prevents the flexbox from expanding it */
    margin: 0 !important;       /* Removes any auto-margins pushing arrows */
    padding-top: 2px !important;
    left: 0 !important;
    bottom: 0 !important;
    transform: none !important;    
}

/* 3. Hover Effect */
#dotsContainer .dot:hover {
  opacity: 1 !important;
  /* Scales the dot up when the mouse is over it */
  transform: scale(1.6) !important; 
  cursor: pointer !important;  
}

/* your custom bullets */
#dotsContainer .dot{
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #111;            /* change to #fff if on dark bg */
  opacity: 0.35;
  margin: 0 6px !important;
  position: relative;          /* makes inline left:0 meaningful */
  transform: scale(1);
  transition: transform 180ms ease, opacity 180ms ease;    
}

/* active variants Swiper uses in dynamic mode */
#dotsContainer .dot.active,
#dotsContainer .dot.active-main{
  opacity: 1;
  transform: scale(1.6);
}

#dotsContainer .dot.active-prev,
#dotsContainer .dot.active-next{
  opacity: 0.7;
  transform: scale(1.1);
}

#dotsContainer .dot.active-prev-prev,
#dotsContainer .dot.active-next-next{
  opacity: 0.5;
  transform: scale(0.6);
}

.slider-outer {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth momentum on iOS */
}

.slide {
    scroll-snap-align: start;
}

/*LIGHTBOX FULLSCREEN IMAGE VIEWER*/

/* Overlay */
.lightbox-overlay{
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  background: rgba(0,0,0,.92);
}

.lightbox-overlay.is-open { display: block; }

.lightbox-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Minimal Swiper layout (needed without Swiper CSS) */
.lightbox-swiper{
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.lightbox-swiper .swiper-wrapper {
  display: flex;
  height: 100%;
  transition-property: transform;
}
.lightbox-swiper .swiper-slide { 
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Image behavior in fullscreen */
.lightbox-swiper img{
  max-width: 92vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select:none;
  -webkit-user-drag:none;
  /* Explicitly allow pinch-zoom on fullscreen images */
  touch-action: pan-y pinch-zoom;
}

.lightbox-swiper video {
  max-width: 92vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  display: block;
  /* Explicitly allow pinch-zoom on fullscreen videos */
  touch-action: pan-y pinch-zoom;
}

/* Wrapper sizes exactly to the video so the drag layer aligns correctly */
.video-wrapper {
  position: relative;
  display: inline-block;
  line-height: 0;
}

/* Transparent overlay that owns drag events for Swiper.
   Stops 48px from the bottom so native controls stay reachable. */
.video-drag-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 48px;
  z-index: 1;
  /* Allow vertical swipes for Swiper while still letting the browser handle pinch-zoom */
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

.video-drag-layer:active {
  cursor: grabbing;
}

/* Image counter */
.lightbox-counter {
  position: absolute;
  top: 18px;
  left: 20px;
  color: #fff;
  font-size: 14px;
  font-family: var(--body-font);
  letter-spacing: 0.5px;
  z-index: 10000;
  user-select: none;
}

/* Close button */
.close-btn{
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 34px;
  color: #fff;
  cursor: pointer;
  z-index: 10000;
}

/* Fullscreen nav buttons */
.nav-btn-fs{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 44px;
  cursor: pointer;
  padding: 10px 14px;
}

.prev-fs{ left: 10px; }
.next-fs{ right: 10px; }

/* FOOTER STYLING */

.site-footer {
    background-color: #f3f3f3;
    padding: 15px 50px;
    font-family: var(--body-font);
    color: #6e6e6e;
    font-size: 0.9rem;    
}

.footer-container {    
    max-width: 100%;
    max-height:fit-content;
    display: flex;
    flex-direction: row; /* Horizontal row */
    justify-content: space-between; /* Space between the 3 items */
    align-items:center; /* Vertically center them */
}

/* Individual Item Styling */

.footer-address a {
    color: inherit;
    text-decoration: none;
    outline: none;   
}

.footer-address a:hover {
    color: #181818;
    transition: color 0.3s ease;
    text-decoration: none;
    outline: none;   
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-icon {
    width: 18px;
    height: 15px;
}

.social-link {
    color: #6e6e6e; 
    transition: color 0.3s ease;
    display: inline-block;
}

.social-link:hover {
    /* Hover color (e.g., black) */
    color: #181818;
    /* The 0.3s transition you requested */
    transition: color 0.3s ease;
}

/* Style of the cover photo of each article-page project*/

.project-cover-container {
    width: 100%;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    line-height: 0;
    overflow: hidden;
}

.full-width-cover {
    width: 100%;
    height: auto;
    display: block;
    transform: translateY(calc(min(0px, 100vh - 100%) / 2));
}

.project-cover-container.cover-align-top .full-width-cover {
    transform: none;
}

.project-cover-container.cover-align-bottom .full-width-cover {
    transform: translateY(min(0px, calc(100vh - 100%)));
}

.full-width-cover.portrait-cover {
    width: auto;
    height: 100vh;
    margin: 0 auto;
}

/*PROJECT DESCRIPTION TEXT STYLING*/

.project-container {
    padding: 60px 0; /* Adds space above and below your content/slider */
    padding-left: clamp(12px, 3vw, 20px);
    padding-right: clamp(8px, 2vw, 12px);
}

.project-details{
    color:rgba(0,0,0,0.8);
    display: grid;
    grid-template-columns: 160px 1fr; /* Label is 180px, Value takes the rest */
    row-gap: 2px;
    margin-bottom: 40px;    
}

.label {
    font-weight: 300;
    color: #666;
}

.value {
    font-weight: 300;
}

.project-info {
    max-width: 80ch;
    margin: 0 auto;
    padding-top: clamp(50px, 6vw, 65px);
}

.collectable-page .project-info {
    max-width: none;
    
}

.project-info-inner {
    width: fit-content;
    margin: 0 auto;
}

.collectable-page .project-info-inner-col {
    width: fit-content;
    margin-inline: clamp(10px, 16vw - 48px, 265px);
    text-align: left;
}

.project-header-int {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: stretch;
  gap: 40px;
}

.project-info-int {
  grid-column: 1 / 3;
  max-width: 80ch;
  margin: 0;
  padding-top: clamp(35px, 6vw, 65px);
}

.project-cover-container-int {
  grid-column: 3;
  align-self: center;
  height: 450px;
  line-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-cover-container-int img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.carousel-exhib-wrapper h2 {
  font-weight: normal;
  margin-left: 70px; /* align heading with carousel content */
}

.project-info h2, h3, h4{
    font-weight: normal;
}

.project-description-col {
    text-align: justify;
    padding-bottom: 50px;
    margin-inline: clamp(10px, 16vw - 48px, 265px);
}

/* PROJECTS PAGE GRID LAYOUT AND STYLING */
/* Filter Buttons Container */

.projects-filter {
    display: flex;
    gap: 30px;
    margin-top: 180px;
    margin-bottom: 3rem;
    margin-left:1rem;
    font-family: var(--header-font);
}

.filter-btn {    
    cursor: pointer;
    color: #6D6D6D;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;    
}

.filter-btn.active, .filter-btn:hover {
    color: #000000;
    text-decoration: underline;
    text-underline-offset: .3rem;
}

/* Desktop: dropdown toggle hidden, buttons shown inline */
.filter-dropdown-toggle {
    display: none;
}

.filter-btn-list {
    display: contents;
}

.collectables-search {
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    color: inherit;
    padding: 5px 0;
    font-family: var(--header-font);
    font-size: 0.9rem;
    text-transform: uppercase;
    outline: none;
    width: 140px;
    transition: border-color 0.3s ease;
}

.collectables-search:focus {
    border-bottom-color: #000;
}

.collectables-search::placeholder {
    color: #aaa;
    text-transform: uppercase;
}

.projects-grid-wrapper {
    display:flex;
    flex-direction: column;
    margin: 0 auto;
    max-width: 1440px;
    width: 100%;        
}

.projects-filter {
  justify-content: left; /*Filter buttons*/        
}

/* PROJECTS LAYOUT ORGANIZING */

.projects-container {   
  display: flex;
  flex-wrap:wrap;
  justify-content: space-between;   /* space BETWEEN images */
  margin: 0 auto;
  width: 100%;
  max-width: 1440px;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.4s ease;
  visibility: hidden;  
}

.projects-container.is-ready {
    opacity: 1;
    visibility: visible;
}

.project-card {  
  display: flex;
  flex-direction: column;
  max-width: 31%;
  width:auto; 
  margin-bottom: 4rem;
  /*background: #68c775; */
}

.project-inner {
  color: #181818;
  text-decoration: none;
  }

.project-image-wrapper {  
  display: flex; 
  overflow:hidden;
  height: 18rem;
  justify-content: center;
  width: 100%;   
}

.project-image-wrapper img {
  border-radius: 4px;
  max-width:100%;
  max-height:100%;
  width: auto;
  height: auto;
  object-fit: contain;   /* 👈 no cropping */
  display: block;
  transition: transform 2.0s ease-in-out;  
}

.project-image-wrapper img:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease-in-out;  
  }

.project-content {
  margin-top: 10px;
}

/* Projects page cards (non-collectables) aligned like collectables */
.projects-grid-wrapper:not(.collectables-grid) .project-card {
  align-items: center;
}

.projects-grid-wrapper:not(.collectables-grid) .project-inner {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.projects-grid-wrapper:not(.collectables-grid) .project-image-wrapper {
  width: 100%;
  max-width: fit-content;
  align-items: flex-start;
  overflow: hidden;
}

.projects-grid-wrapper:not(.collectables-grid) .project-image-wrapper img {
  height: 100%;
  width: auto;
  max-width: none;
}

.collectables-grid .projects-container {
  padding-left: 18px;
  padding-right: 18px;
  row-gap: 28px;
  column-gap: 0;
  justify-content: space-evenly;
}

.collectables-grid .project-card {
  flex: 0 0 auto;
  min-width: 23.5%;
  max-width: 48%;
  align-items: center;
}

.collectables-grid .project-card.align-start {
  align-items: flex-start;
}

.collectables-grid .project-card.align-end {
  align-items: flex-end;
}

.collectables-grid .project-inner {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.collectables-grid .project-image-wrapper {
  width: 100%;
  max-width: fit-content;
  align-items: flex-start;
  overflow: hidden;
}

.collectables-grid .project-image-wrapper img {
  height: 100%;
  width: auto;
  max-width: none;
}

/* 3. The Hidden State - JS will add this */
.project-card.is-hidden {
    display: none !important;
  }

/* EXHIBITIONS GRID — 3 / 2 / 1 cards per row */

.exhibitions-grid .projects-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(40px, 12vw, 100px) clamp(20px, 12vw, 200px);
  padding-left: 28px;
  padding-right: 28px;
}

.exhibitions-grid .project-card {
  flex: unset;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.exhibitions-grid .project-image-wrapper {
  max-width: 100%;
  height: auto;
  aspect-ratio: 1125 / 1500;
  overflow: hidden;
}

.exhibitions-grid .project-image-wrapper img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

/* HOME PAGE CONTENT STYLING */

.home-container {
    display: flex;
    flex-direction:column;
    width: 100%;
    padding-top: 8vh;
  }

.home-cover-desktop {
  display: block;
}

@media (max-width: 1024px) {
  .home-cover-desktop {
    display: none;
  }
}

.home-cover img {
    object-fit: contain;
    width:100%;
}

/* Desktop: allow home container to span full viewport width */
@media (min-width: 1024px) {
  .home-container {
    width: 100vw;
  }

  /* On desktop home page, show about-text above projects-masonry */
  .home-container .about-text {
    order: 0;
  }

  .home-container .projects-masonry {
    order: 1;
  }
}

.about-text {    
    max-width: 620px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 16rem;
    padding-left: 1rem;
    padding-right:1rem;
    padding-bottom: 16rem;
    text-align:justify;
}

.about-text2 {
    max-width: 620px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 8rem;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: justify;
}

.jobs-page {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
    font-family: var(--body-font);
    color: #6e6e6e;
    font-size: 0.9rem;
    flex: 1;
}

.contact-page {
    max-width: 620px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.contact-page .contact-img {
    max-width: 360px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-top: 3rem;
    font-family: var(--body-font);
    color: #6e6e6e;
    font-size: 0.9rem;
}

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

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

.contact-socials {
    display: flex;
    gap: 20px;
    margin-top: 0.5rem;
}

.about-img {
    width: 100%;
    display: block;
    margin-top: 8rem;
    padding-bottom: 4rem;
}

.main-pages-container {
    display: flex;
    flex-wrap: wrap;
}

/* Exhibitions Carousel */

.carousel-exhib-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 0 100px;
  padding: 0 0;
  box-sizing: border-box;
}

.main-carousel {
  width: 100%;
  height: auto;
}

.swiper-slide img {
  width: 100%;
  display: block;
  object-fit: contain;
  border-radius: 4px;
}

.carousel-exhib-wrapper .swiper-slide img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.carousel-exhib-wrapper .swiper-slide a {
  text-decoration: none;
  display: block;
  width: 75%;       /* keep visual card width ~25% smaller */
  margin: 0 auto;   /* center card inside each slide */
}

.slide-caption {
  margin-top: 15px;
  text-align: left; /* Change to center or right if preferred */
}

.slide-caption h3 {
  font-size: 1.1rem;
  margin: 0;
  color: #333;
}

.slide-caption p {
  font-size: 0.9rem;
  color: #888;
}

/* Custom Arrow Colors */
.swiper-button-next, .swiper-button-prev {
  color: #000;
  transform: scale(0.7);
}

.carousel-exhib-wrapper .swiper-button-prev,
.carousel-exhib-wrapper .swiper-button-next {
  position: absolute;
  top: 57%;
  transform: translateY(-50%) scale(0.7);
}

.carousel-exhib-wrapper .swiper-button-prev {
  left: 5px;
}

.carousel-exhib-wrapper .swiper-button-next {
  right: 5px;
}

/* HOME PAGE PROJECTS TILES */

.projects-masonry {
  margin-left: 10px;
  margin-right: 18px;
  margin-bottom: 200px;
}

/* On mobile screens, remove bottom spacing below projects-masonry */
@media (max-width: 767px) {
  .projects-masonry {
    margin-bottom: 0;
  }
}

.bento-container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.item {
  display: flex;
  flex-direction: column-reverse; /* title rendered above image */
  align-items: flex-start;
}

.item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  transition: opacity 0.3s ease-in-out;
}

.bento-link {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 4px;
}

.bento-link:hover img {
  opacity: 0.7;
}

.bento-title {
  font-family: var(--header-font);
  font-size: 1.1rem;
  text-transform: none;
  color: #000000;
  white-space: nowrap;
  text-decoration: none;
  margin-bottom: 12px;
}

.bento-title:hover {
  color: #6e6e6e;
}

/* Tablet: extra top padding for bottom-box title on home page */
@media (min-width: 768px) and (max-width: 1023px) {
  .bottom-box .bento-title {
    padding-top: 150px;
  }
}

/* Desktop alignment: full-width rows, images pushed to screen sides */
@media (min-width: 1024px) {
  .bento-container {
    width: 100vw;
    max-width: none;
    margin: 0;
  }

  /* On desktop, each home tile spans half the screen width */
  .big-box .bento-link {
    width: 50%;
    align-self: flex-start;  /* stick to left */
    padding-bottom: 150px;    /* extra space below big-box on desktop */
  }

  /* Extra bottom spacing for the big-box container on desktop */
  .big-box {
    margin-bottom: 80px;
  }

  .bottom-box .bento-link {
    width: 32%;              /* ~15% larger than previous 28% */
    align-self: flex-start;  /* stick to left */
    aspect-ratio: 3 / 4;     /* portrait shape on desktop */
  }

  .tall-box {
    align-items: flex-end;   /* title + image to the right */
  }

  .tall-box .bento-link {
    width: 35%;              /* 30% smaller than 50% */
    align-self: flex-end;    /* stick to right */
  }

  /* bring bottom-box 50% closer vertically by reducing middle spacing */
  .tall-box {
    margin-top: -478px;   /* push tall-box up by 478px */
    margin-bottom: 2rem;
  }

  /* Desktop: keep a consistent gap between big-box and bottom-box */
  .bottom-box {
    /* Pull bottom-box further upward (50% more than previous -200px) */
    margin-top: -450px;
    margin-left: 200px;   /* push right by 200px */
  }

  /* Desktop-only title alignment tweaks around home tiles */
  /* For tall-box, align title's left edge with image's left edge */
  .tall-box .bento-title {
    align-self: flex-end;
    width: 35%;       /* match .tall-box .bento-link width */
    text-align: left;
    margin-right: 0;
  }

  /* Align "ARCHITECTURE" title so its right edge lines up with image right edge */
  .big-box .bento-title {
    align-self: flex-start;
    width: 50%;          /* same as .big-box .bento-link width */
    text-align: right;
    margin-left: 0;
  }

  /* Align "COLLECTABLES" title so its right edge lines up with collectiblesCover image */
  .bottom-box .bento-title {
    align-self: flex-start;
    width: 32%;          /* same as .bottom-box .bento-link width */
    text-align: right;
    margin-left: 0;
  }
}

/* Removed special 1440px override so big-box uses the same desktop width everywhere */

.collectiblesCover {
  object-position: center bottom;
}

/* SEARCH BAR STYLING */

.search-container {
  position: relative;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 300px;
  text-align: left;
}

#site-search {
  background: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
  color: inherit;
  width: 100%;
  padding: 5px 0;
  font-family: inherit;
  outline: none;
}

.search-results {
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.search-results .search-result-item {
  display: block;
  padding: 8px 0;
  font-size: 0.9rem;
  text-decoration: none;
  color: #666;
  transition: color 0.2s;
}

.search-result-item:hover {
  color: #000;
}

/* PRESS & AWARDS PAGE STYLING */

.press-and-awards-container {
  margin-top: 120px;
  max-width: 1440px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 60px 20px;
}

.press-and-awards-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 40px;
  row-gap: 80px; /* larger vertical gap between logo rows */
  align-items: center; /* vertically center logos within each row */
  justify-items: center;
}

.press-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* New non-dropdown press image + links layout */
.press-image img {
  display: block;
  max-width: 160px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.press-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px; /* space between logo and its links */
  align-items: center; /* center each link block horizontally */
}

.press-links a {
  display: inline-block;
  max-width: 25ch;  /* roughly 35 characters per line */
  text-align: center; /* center the link text within the constrained width */
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
}

.press-links a:hover {
  text-decoration: underline;
  color: #000;
}

.press-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.press-dropdown-toggle .dropdown-label img {
  display: block;
  max-width: 160px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.press-dropdown-toggle .dropdown-arrow {
  font-size: 1.2rem;
}

.press-dropdown-links {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px; /* extra space between logo and its links */
}

.press-dropdown-links.open {
  display: flex;
}

.press-dropdown-links a {
  font-size: 0.9rem;
  color: #555;
  text-decoration: none;
}

.press-dropdown-links a:hover {
  text-decoration: underline;
  color: #000;
}


.publications-column-l1,
.publications-column-l2 {
  width: 100%;
}

.publications-column-l1,
.publications-column-r1 {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.publications-column-l1 img,
.publications-column-r1 img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}

.publications-column-l2 p,
.publications-column-l3 p,
.publications-column-r2 p,
.publications-column-r3 p {
  margin-top: 0;
  max-width: 80ch;
  margin-left: auto;
  margin-right: auto;
}

.publications-container,
.rms-container {
  margin-top: clamp(48px, 18vw, 160px);
  max-width: 1440px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.publications-grid,
.rms-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.publications-grid::before {
  display: none;
}

.publications-column-group,
.rms-column-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  gap: 24px;
  width: 100%;
  padding-bottom: 60px;
}

.publications-column-l1,
.publications-column-r1 {
  justify-content: center;
}

.publication-item,
.rms-item {
  max-width: 80ch;
  width: 100%;
}

.publication-item img,
.rms-item img {
  float: left;
  width: 40%;
  max-width: 260px;
  height: auto;
  margin: 0 24px 10px 0;
  display: block;
  padding-top: 10px;
}

.publication-item::after,
.rms-item::after {
  content: "";
  display: block;
  clear: both;
}

/*MOBILE SCREENS */

@media (max-width: 1200px) {
  .collectables-grid .projects-filter {
      position: relative;
      flex-wrap: wrap;
      gap: 0 30px;
      align-items: center;
  }

  .collectables-grid .filter-dropdown-toggle {
      display: flex;
      align-items: center;
      gap: 6px;
      background: none;
      border: none;
      font-family: var(--header-font);
      font-size: 0.9rem;
      text-transform: uppercase;
      color: #000;
      cursor: default;
      padding: 0;
      width: fit-content;
  }

  .collectables-grid .dropdown-label,
  .collectables-grid .dropdown-arrow {
      cursor: pointer;
  }

  .collectables-grid .filter-dropdown-toggle:hover .dropdown-label {
      text-decoration: underline;
      text-underline-offset: .3rem;
  }

  .collectables-grid .dropdown-arrow {
      font-size: 1.4rem;
      transition: transform 0.25s ease;
  }

  .collectables-grid .filter-dropdown-toggle[aria-expanded="true"] .dropdown-arrow {
      transform: rotate(180deg);
  }

  .collectables-grid .filter-btn-list {
      display: flex;
      flex-direction: column;
      gap: 14px;
      width: 100%;
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease, margin 0.3s ease;
      margin-top: 0;
  }

  .collectables-grid .filter-btn-list.open {
      max-height: 400px;
      margin-top: 18px;
  }
}

@media (min-width: 1024px) {
  .projects-grid-wrapper:not(.collectables-grid) .project-card {
    flex: 0 0 31%;
    max-width: 31%;
  }

  .press-and-awards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .exhibitions-grid .projects-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 990px) {
  .collectables-grid .project-card {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  .project-header-int {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
    .project-header-int + .slider-outer {
      margin-top: 20px; 
     } 
  

  .project-info-int {
    grid-column: 1;
  }

  .project-cover-container-int {
    grid-column: 1;
    max-width: 100%;
    margin-top: 24px;
    display: none;
  }

  .project-cover-container-int .full-width-cover {
    height: auto;
  }
}

@media screen and (max-width: 768px) {

    /* Center overlay menu items, language switch and search on mobile */
    .overlay-curtain {
      align-items: center;
    }

    .nav-list {
      width: 100%;
      text-align: center;
      align-items: center;
    }

    .overlay .lang-text-btn {
      align-self: center;
    }

    .overlay .search-container {
      margin-left: auto;
      margin-right: auto;
      text-align: center;
    }

    .rms-image-float {
      float: none;
      display: block;
      width: 100%;
      max-width: 100%;
      margin: 0 auto 1rem;
    }

    .publication-item img,
    .rms-item img {
      float: none;
      width: 100%;
      max-width: 100%;
      margin: 0 auto 1rem;
    }

    .rms-three-column {
      grid-template-columns: 1fr;
    }

    .carousel-nav-controls {
      position: static;
      display: flex;
      justify-content: center; /* only dots remain, center them */
      align-items: center;
      gap: 0;
      margin-top: 12px;
  }
  
  .nav-btn {
      display: none; /* hide arrows on mobile */
  }
  
  #dotsContainer {
      position: static;
      transform: none;
      margin: 0 auto;
  }
  
      .slider-outer {
          margin: 20px auto 0 auto;
          padding: 0;
          width: 100%;
          overflow: hidden;
      }
  
      .collectable-page .slider-outer {
          max-width: 100%;
          width: 100%;
          margin: 40px auto 0 auto;
      }
  
      .slider-track {
          display: flex;
          gap: 0; /* Keeps math at exactly 100% per slide */
          transition: transform 0.5s ease-in-out;
      }
  
      .slide {
          flex: 0 0 100%; /* Force exactly one slide per view */
          width: 100%;
          min-width: 100%;
          max-width: 100vw; /* Ensures it never exceeds the screen */
          padding: 0 15px; 
          box-sizing: border-box;
      }
  
      .architecture-page .slide,
      .interiors-page .slide {
          padding-left: 2px;
          padding-right: 2px;
          aspect-ratio: auto;
          display: flex;
          align-items: center;      /* vertical centering inside a tall slide */
          justify-content: center;  /* horizontal centering */
          min-height: 80vh;         /* give room so landscape images can center */
      }
  
      .slide img,
      .slide video {
          width: 100%;
          height: 100%;
          object-fit: contain; /* Keep entire image visible on mobile */
      }
  
      .architecture-page .slide img,
      .architecture-page .slide video,
      .interiors-page .slide img,
      .interiors-page .slide video {
          width: 100%;
          height: auto;
          object-fit: contain;
      }
  
      .nav-btn-fs {
        font-size: 22px;
        padding: 5px 7px;
      }
  
      .footer-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
  
    .collectable-page .project-info-inner-col {
      margin-left: auto;
      margin-right: auto;
    }
  
    .carousel-exhib-wrapper h2 {
      text-align: center;
      margin: 0 auto 0 auto; /* center heading on mobile */
    }
  
    .exhibitions-grid .projects-container {
      grid-template-columns: 1fr;
    }
  
    .carousel-exhib-wrapper {
      padding-left: 20px;
      padding-right: 20px;
    }
  
    .carousel-exhib-wrapper .swiper-button-prev {
      left: 2px;
    }
  
    .carousel-exhib-wrapper .swiper-button-next {
      right: 2px;
    }
  
    .bento-container {
      aspect-ratio: auto;
      display: flex;
      flex-direction: column;
      gap: 48px;
    }
  
    .item,
    .big-box,
    .tall-box,
    .bottom-box {
      position: static;
      width: 100%;
      top: auto;
      left: auto;
      right: auto;
      bottom: auto;
      aspect-ratio: 4 / 3;
    }
  
    .bento-title,
    .big-box .title-right,
    .tall-box .title-bottom,
    .bottom-box .title-left {
      position: static;
      display: block;
      margin-top: 8px;
      font-size: 1rem;
      top: auto;
      left: auto;
      right: auto;
      bottom: auto;
      white-space: normal;
    }
  
    .item:hover img,
    .item:focus-within img {
      opacity: 1;
    }
  }

@media (max-width: 700px) {
    .projects-grid-wrapper:not(.collectables-grid) .project-card {
      flex: 0 0 100%;
      max-width: 100%;
      align-items: center;
    }
  
    .projects-grid-wrapper:not(.collectables-grid) .project-inner {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      width: 100%;
    }
  
    .projects-grid-wrapper:not(.collectables-grid) .project-image-wrapper {
      justify-content: center;
      width: 100%;
      height: auto;
    }
  
    .projects-grid-wrapper:not(.collectables-grid) .project-image-wrapper img {
      width: 100%;
      height: auto;
      max-height: none;
    }
  
    .projects-grid-wrapper:not(.collectables-grid) .project-content {
      padding-top: 6px;
    }
  }

@media (max-width: 680px) {
    .collectables-grid .project-card {
      flex: 0 0 100%;
      max-width: 100%;
    }
  
    .collectables-grid .project-image-wrapper {
      width: 100%;
      height: auto;
    }
  
    .collectables-grid .project-image-wrapper img {
      width: 100%;
      height: auto;
      max-height: none;
    }
  }
 