:root{
  --bg:#f7f4ef;
  --surface:#ffffff;
  --text:#151515;
  --muted:#6f6b64;
  --line:rgba(21,21,21,.10);
  --shadow:0 20px 60px rgba(21,21,21,.08);
  --shadow-strong:0 28px 80px rgba(21,21,21,.14);
  --radius:22px;
  --content:min(1380px, calc(100vw - 40px));
  --content-mobile:calc(100vw - 24px);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.85), rgba(255,255,255,0) 40%),
    linear-gradient(180deg, #faf8f3 0%, #f6f2eb 100%);
  color:var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.shell{
  width:var(--content);
  margin:0 auto;
  padding:24px 0 36px;
}

.topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:8px 0 0;
}

.brand{
  min-width:0;
  padding-right:16px;
}

.name{
  margin:0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
  font-size:clamp(2.15rem, 5.2vw, 4.9rem);
  line-height:.95;
  font-weight:600;
  letter-spacing:.02em;
  text-transform:uppercase;
}

.subtitle{
  margin:14px 0 0;
  font-size:clamp(.92rem, 1.7vw, 1.08rem);
  line-height:1.5;
  color:var(--muted);
  letter-spacing:.015em;
}

.insta{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:11px 14px;
  font-size:.84rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text);
  text-decoration:none !important;
  white-space:nowrap;
  background:rgba(255,255,255,.76);
  border:1px solid rgba(21,21,21,.12);
  border-radius:999px;
  box-shadow:0 8px 24px rgba(21,21,21,.05);
  transition:
    transform .22s ease,
    opacity .22s ease,
    background-color .22s ease,
    border-color .22s ease,
    box-shadow .22s ease;
}

.insta:hover{
  opacity:1;
  transform:translateY(-1px);
  background:#fff;
  border-color:rgba(21,21,21,.22);
  box-shadow:0 12px 30px rgba(21,21,21,.09);
}

.insta:focus-visible{
  outline:2px solid rgba(21,21,21,.18);
  outline-offset:3px;
}

.insta__icon{
  width:17px;
  height:17px;
  display:block;
  flex:0 0 auto;
}

.insta__icon svg{
  display:block;
  width:100%;
  height:100%;
  stroke:currentColor;
  fill:none;
  stroke-width:1.85;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.intro-space{
  height:clamp(34px, 5vw, 70px);
}

.section-title{
  margin:0 0 26px;
  font-size:.83rem;
  font-weight:600;
  letter-spacing:.26em;
  text-transform:uppercase;
  color:var(--muted);
}

.gallery{
  column-count:3;
  column-gap:20px;
}

.card{
  break-inside:avoid;
  margin:0 0 20px;
  border-radius:0;
  overflow:hidden;
  background:transparent;
  box-shadow:none;
  border:0;
  cursor:zoom-in;
  transition:transform .35s ease;
  position:relative;
  isolation:isolate;
}

.card::before,
.card::after{
  content:none;
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:none;
}

.gallery-image{
  position:relative;
  z-index:2;
  display:block;
  width:100%;
  height:auto;
  vertical-align:middle;
  background:transparent;
  opacity:0;
  transform:scale(1.018);
  filter:blur(10px);
  transition:
    opacity .55s ease,
    transform .75s cubic-bezier(.2,.7,.2,1),
    filter .75s ease;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  will-change:opacity, transform, filter;
}

.card.is-loaded .gallery-image{
  opacity:1;
  transform:none;
  filter:blur(0);
}

@keyframes shimmer{
  from{ background-position:220% 0; }
  to{ background-position:-220% 0; }
}

footer{
  width:var(--content);
  margin:0 auto;
  padding:34px 0 54px;
  border-top:1px solid var(--line);
  font-size:.82rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--muted);
}

.lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  padding:clamp(12px, 2vw, 24px);
  background:rgba(247,244,239,.92);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  opacity:0;
  visibility:hidden;
  transition:opacity .25s ease, visibility .25s ease;
}

.lightbox.is-open{
  opacity:1;
  visibility:visible;
}

.lightbox__inner{
  position:relative;
  width:min(94vw, 1600px);
  height:min(92vh, 1180px);
  border-radius:24px;
}

.lightbox__stage{
  position:absolute;
  inset:0;
  overflow:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  border-radius:0;
  scrollbar-width:thin;
  scrollbar-color:rgba(21,21,21,.18) transparent;
  background:transparent;
  box-shadow:none;
}

.lightbox__stage::-webkit-scrollbar{
  width:10px;
  height:10px;
}

.lightbox__stage::-webkit-scrollbar-thumb{
  background:rgba(21,21,21,.16);
  border-radius:999px;
}

.lightbox__canvas{
  min-width:100%;
  min-height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(14px, 2vw, 22px);
  position:relative;
}

.lightbox__thumb{
  position:absolute;
  inset:auto;
  max-width:100%;
  max-height:100%;
  border-radius:0;
  filter:blur(10px);
  opacity:0;
  transform:scale(1.01);
  transition:opacity .18s ease, filter .18s ease, transform .18s ease;
  box-shadow:none;
  background:transparent;
  user-select:none;
  -webkit-user-select:none;
  -webkit-user-drag:none;
  pointer-events:none;
}

.lightbox__image{
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  border-radius:0;
  box-shadow:none;
  background:transparent;
  user-select:none;
  -webkit-user-select:none;
  -webkit-user-drag:none;
  cursor:zoom-in;
  touch-action:none;
  opacity:0;
  transform:scale(.985);
  transition:opacity .18s ease, transform .18s ease;
  position:relative;
  z-index:2;
}

.lightbox__image.is-visible{
  opacity:1;
  transform:none;
}

.lightbox__image.is-zoomed{
  max-width:none;
  max-height:none;
}

.lightbox__image.is-dragging{
  cursor:grabbing;
}

.lightbox__close{
  position:absolute;
  top:max(10px, env(safe-area-inset-top));
  right:max(10px, env(safe-area-inset-right));
  width:46px;
  height:46px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.9);
  color:var(--text);
  font-size:1.5rem;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(21,21,21,.08);
  transition:transform .2s ease, opacity .2s ease;
  z-index:3;
}

.lightbox__close:hover{
  transform:scale(1.04);
  opacity:.75;
}

.lightbox__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:52px;
  height:52px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  color:var(--text);
  font-size:1.45rem;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(21,21,21,.08);
  transition:transform .2s ease, opacity .2s ease;
  z-index:3;
}

.lightbox__nav:hover{
  transform:translateY(-50%) scale(1.04);
  opacity:.75;
}

.lightbox__nav--prev{
  left:max(10px, env(safe-area-inset-left));
}

.lightbox__nav--next{
  right:max(10px, env(safe-area-inset-right));
}

.lightbox__nav[disabled]{
  opacity:.35;
  cursor:default;
  pointer-events:none;
}

@media (max-width: 1100px){
  .gallery{ column-count:2; }
  .shell{ width:min(1200px, var(--content-mobile)); }
  footer{ width:min(1200px, var(--content-mobile)); }
}

@media (max-width: 700px){
  .shell{
    width:var(--content-mobile);
    padding-top:18px;
  }

  .topbar{
    gap:14px;
    align-items:flex-start;
  }

  .insta{
    font-size:.74rem;
    letter-spacing:.11em;
    padding:9px 12px;
  }

  .subtitle{
    margin-top:10px;
    max-width:28ch;
  }

  .intro-space{
    height:26px;
  }

  .section-title{
    margin-bottom:18px;
    font-size:.76rem;
  }

  .gallery{
    column-count:1;
    column-gap:0;
  }

  .card{
    margin-bottom:16px;
    border-radius:0;
  }

  footer{
    width:var(--content-mobile);
    padding:28px 0 42px;
    font-size:.74rem;
    letter-spacing:.12em;
  }

  .lightbox{
    padding:10px;
  }

  .lightbox__inner{
    width:100%;
    height:100%;
  }

  .lightbox__stage,
  .lightbox__thumb,
  .lightbox__image{
    border-radius:0;
  }

  .lightbox__close{
    width:42px;
    height:42px;
    top:6px;
    right:6px;
  }

  .lightbox__nav{
    width:42px;
    height:42px;
    font-size:1.2rem;
  }

  .lightbox__nav--prev{
    left:6px;
  }

  .lightbox__nav--next{
    right:6px;
  }
}