:root{
  --ink: #1b1b1b;
  --muted: rgba(27,27,27,.65);
  --navbg: #eeeeee;
  --max: 1040px;
}

html, body{
  overflow-x: hidden;
}

/* ===== Top nav ===== */
.topbar{
  background: var(--navbg);
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.topbar__inner{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar__link{
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  letter-spacing: 0.20em;
  font-size: 13px;
  text-decoration: none;
  color: rgba(0,0,0,.55);
  text-transform: uppercase;
  padding: 6px 4px;
  position: relative;
}

/* subtle underline animation */
.topbar__link::after{
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -6px;
  height: 1px;
  background: rgba(0,0,0,.35);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 200ms ease;
}

.topbar__link:hover{
  color: rgba(0,0,0,.85);
}

.topbar__link:hover::after{ transform: scaleX(1); }

.topbar__link.is-active{
  color: rgba(0,0,0,.85);
}

.topbar__link.is-active::after{ transform: scaleX(1); 
}


/* ================================
   Centered Gallery + Editorial Controls
   ================================ */

.gallery{
  position: relative;
  max-width: 850px;        /* original image width */
  margin: 120px auto 0;
  overflow: hidden;
  padding: 0 24px;         /* breathing room on small screens */
}

/* Track */
.gallery__track{
  display: flex;
  transition: transform 600ms ease;
  will-change: transform;
}

/* Each slide */
.gallery__slide{
  flex: 0 0 100%;
  display: grid;
  place-items: center;
}

/* Images — never upscale */
.gallery__slide img{
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================================
   Controls (TOP RIGHT – FLEX BAR)
   ================================ */

.gallery__controls{
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;

  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dropdown */
.gallery__nav{
  font-family: "Cormorant Garamond", serif;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;

  padding: 6px 30px 6px 12px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.25);
  border-radius: 0;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  cursor: pointer;

  background-image:
    linear-gradient(45deg, transparent 50%, rgba(0,0,0,.6) 50%),
    linear-gradient(135deg, rgba(0,0,0,.6) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

/* Arrows */
.gallery__arrow{
  width: 34px;
  height: 34px;

  border: 1px solid rgba(0,0,0,.25);
  background: rgba(255,255,255,.9);

  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  line-height: 1;

  cursor: pointer;
}

.gallery__arrow:hover{
  background: rgba(255,255,255,1);
}

/* ================================
   Mobile Refinement
   ================================ */

@media (max-width: 520px){
  .gallery{
    margin-top: 80px;
  }

  .gallery__controls{
    top: 14px;
    right: 14px;
  }

  .gallery__nav{
    font-size: 12px;
  }

  .gallery__arrow{
    width: 32px;
    height: 32px;
  }
}





/* ===== Footer ===== */

.nb-footer{
  background: #eeeeee;
  margin-top: 80px;
}

.nb-footer__inner{
  max-width: var(--max);      /* match your pages */
  margin: 0 auto;
  padding: 90px 24px 70px;
  color: rgba(0,0,0,.72);
}

.nb-footer__brand{
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 18px;
  margin-bottom: 42px;
}

.nb-footer__section{
  margin-bottom: 36px;
}

.nb-footer__heading{
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 18px;
  margin-bottom: 10px;
  color: rgba(0,0,0,.70);
}

.nb-footer__headingLink{
  display: inline-block;
  text-decoration: none;
  color: rgba(0,0,0,.70);
}

.nb-footer__headingLink:hover{
  color: rgba(0,0,0,.90);
}

.nb-footer__link{
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  text-decoration: none;
  color: rgba(0,0,0,.62);
  margin: 6px 0;
}

.nb-footer__link:hover{
  color: rgba(0,0,0,.88);
}

.nb-footer__copyright{
  margin-top: 34px;
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  color: rgba(0,0,0,.65);
}

/* Back-to-top button */
.toTop{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;

  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);

  display: grid;
  place-items: center;

  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  color: rgba(0,0,0,.70);

  cursor: pointer;

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.toTop.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toTop:hover{
  background: rgba(255,255,255,.98);
  color: rgba(0,0,0,.90);
}


/* ================================
   Mobile: Vertical Editorial Gallery
   ================================ */

@media (max-width: 520px){

  /* Kill controls entirely */
  .gallery__controls{
    display: none;
  }

  /* Disable slider behavior */
  .gallery{
    overflow: visible;
    margin-top: 64px;
  }

  .gallery__track{
    display: block;        /* no flex = no sliding */
    transform: none !important;
    transition: none;
  }

  /* Stack slides */
  .gallery__slide{
    display: block;
    margin-bottom: 32px;  /* editorial spacing */
  }

  .gallery__slide img{
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
  }
}
