/* FY Photography — public site */

:root {
  --ink: #141414;
  --ink-soft: #555;
  --grey: #8a8a8a;
  --line: #e5e5e5;
  --paper: #ffffff;
  --font: "Helvetica Neue", Helvetica, "Hiragino Sans GB", Arial, sans-serif;
}

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

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 48px;
  transition: background .45s ease, padding .45s ease, box-shadow .45s ease;
  color: #fff;
}

.site-header.solid,
.site-header.scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  color: var(--ink);
  padding: 16px 48px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  letter-spacing: .08em;
}

.logo-mark {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .06em;
  border: 1.5px solid currentColor;
  padding: 3px 7px;
  line-height: 1;
}

.logo-text {
  font-weight: 300;
  font-size: 13px;
  letter-spacing: .42em;
}

.site-nav {
  display: flex;
  gap: 38px;
}

.site-nav a {
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: .22em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
  opacity: .92;
  transition: opacity .3s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right .35s ease;
}

.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after,
.site-nav a.active::after { right: 0; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 34px;
  height: 26px;
  cursor: pointer;
  position: relative;
  z-index: 120;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: currentColor;
  margin: 7px 4px;
  transition: transform .3s, opacity .3s;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: #0d0d0d;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.6s ease;
  will-change: opacity, transform;
}

.hero-slides img.on {
  opacity: 1;
  animation: kenburns 9s ease-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1.02); }
  to   { transform: scale(1.1); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.28), rgba(0,0,0,0) 30%),
    radial-gradient(ellipse at center, rgba(0,0,0,.16), rgba(0,0,0,.02) 65%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  text-shadow: 0 1px 22px rgba(0, 0, 0, .35);
}

.hero-kicker {
  font-size: 11.5px;
  letter-spacing: .48em;
  text-indent: .48em;
  opacity: .85;
  margin-bottom: 18px;
}

.hero-cat {
  font-size: 12.5px;
  letter-spacing: .34em;
  text-indent: .34em;
  opacity: .9;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(34px, 6vw, 66px);
  font-weight: 300;
  letter-spacing: .015em;
  line-height: 1.12;
  max-width: 16em;
  min-height: 1.2em;
}

.hero-title, .hero-cat { transition: opacity .8s ease; }
.hero.switching .hero-title,
.hero.switching .hero-cat { opacity: 0; }

.hero-btn {
  margin-top: 40px;
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .85);
  padding: 14px 38px;
  font-size: 11.5px;
  letter-spacing: .3em;
  text-indent: .3em;
  transition: background .35s, color .35s;
}

.hero-btn:hover { background: #fff; color: var(--ink); }

.hero-dots {
  position: absolute;
  right: 48px;
  bottom: 40px;
  display: flex;
  gap: 12px;
  z-index: 5;
}

.hero-dots button {
  width: 26px;
  height: 14px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}

.hero-dots button::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 6px;
  height: 2px;
  background: rgba(255, 255, 255, .45);
  transition: background .3s;
}

.hero-dots button.on::before { background: #fff; }

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  animation: floaty 2.6s ease-in-out infinite;
}

.hero-scroll::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: translate(-50%, -70%) rotate(-45deg);
}

@keyframes floaty {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ---------- sections ---------- */

main { background: var(--paper); }

.section-kicker {
  font-size: 11px;
  letter-spacing: .44em;
  color: var(--grey);
  text-align: center;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 300;
  text-align: center;
  margin-top: 14px;
  letter-spacing: .02em;
}

/* explore */

.explore { padding: 110px 48px 40px; }

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1480px;
  margin: 60px auto 0;
}

.explore-card { display: block; }

.explore-img {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #f2f2f2;
}

.explore-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 1.1s cubic-bezier(.2, .6, .2, 1), filter .6s;
}

.explore-card:hover .explore-img img {
  transform: scale(1.055);
  filter: brightness(.92);
}

.explore-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 2px 0;
}

.explore-name {
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
}

.explore-count {
  font-size: 12px;
  color: var(--grey);
  letter-spacing: .12em;
}

/* about */

.about {
  padding: 130px 24px 140px;
  max-width: 720px;
  margin: 0 auto;
}

.about-text {
  margin-top: 34px;
  font-size: 16.5px;
  line-height: 2.05;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: .01em;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 70px 24px 60px;
  text-align: center;
  background: #fafafa;
}

.footer-title {
  font-size: 13px;
  letter-spacing: .42em;
  text-indent: .42em;
}

.footer-line { margin-top: 18px; font-size: 14px; letter-spacing: .06em; }
.footer-line a { border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .3s; }
.footer-line a:hover { border-color: var(--ink); }
.footer-sep { margin: 0 12px; color: var(--grey); }

.footer-copy {
  margin-top: 26px;
  font-size: 11.5px;
  color: var(--grey);
  letter-spacing: .1em;
}

.footer-admin {
  margin-left: 14px;
  color: #c4c4c4;
  transition: color .3s;
}

.footer-admin:hover { color: var(--ink); }

/* ---------- gallery page ---------- */

.gallery-page .site-header { position: sticky; }

.gallery-main {
  padding: 72px 48px 110px;
  max-width: 1560px;
  margin: 0 auto;
}

.gallery-head { text-align: center; margin-bottom: 64px; }

.gallery-title {
  font-size: clamp(32px, 4.6vw, 54px);
  font-weight: 300;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 16px;
}

.gallery-count {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--grey);
}

.masonry {
  columns: 3;
  column-gap: 26px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 26px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: #f2f2f2;
}

.masonry-item img {
  width: 100%;
  height: auto;
  transition: transform 1.1s cubic-bezier(.2, .6, .2, 1), filter .5s;
}

.masonry-item::after {
  content: attr(data-title);
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 46px 18px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .45s;
  pointer-events: none;
}

.masonry-item:hover img { transform: scale(1.04); }
.masonry-item:hover::after { opacity: 1; }

.gallery-empty {
  text-align: center;
  color: var(--grey);
  letter-spacing: .1em;
  padding: 60px 0 120px;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 10, 10, .97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .35s;
}

.lightbox.open { opacity: 1; }

.lb-stage {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-stage img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  opacity: 1;
  transition: opacity .3s;
}

.lb-stage img.fading { opacity: 0; }

.lb-caption {
  margin-top: 20px;
  color: rgba(255, 255, 255, .85);
  font-size: 12.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  display: flex;
  gap: 22px;
  align-items: baseline;
}

.lb-counter { color: rgba(255, 255, 255, .45); letter-spacing: .18em; }

.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: rgba(255, 255, 255, .75);
  cursor: pointer;
  font-weight: 200;
  transition: color .3s;
  z-index: 5;
}

.lightbox button:hover { color: #fff; }

.lb-close { top: 22px; right: 30px; font-size: 40px; line-height: 1; }
.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 58px;
  padding: 30px 22px;
}
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

/* ---------- responsive ---------- */

@media (max-width: 1240px) {
  .site-nav { gap: 24px; }
  .site-nav a { font-size: 11.5px; letter-spacing: .16em; }
  .logo-text { letter-spacing: .3em; }
}

@media (max-width: 1100px) {
  .masonry { columns: 2; }
  .explore-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (max-width: 960px) {
  .site-header { padding: 20px 22px; }
  .site-header.solid, .site-header.scrolled { padding: 14px 22px; }

  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 12, .97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s;
  }

  .site-nav.open { opacity: 1; pointer-events: auto; }
  .site-nav a { color: #fff; font-size: 15px; }

  body.nav-open .site-header { color: #fff; }
  body.nav-open .nav-toggle span:first-child { transform: translateY(4.2px) rotate(45deg); }
  body.nav-open .nav-toggle span:last-child { transform: translateY(-4.2px) rotate(-45deg); }

  .hero-dots { right: 22px; bottom: 28px; }

  .explore { padding: 80px 22px 20px; }
  .explore-grid { grid-template-columns: 1fr; gap: 40px; }
  .explore-img { aspect-ratio: 4 / 3; }

  .gallery-main { padding: 48px 22px 80px; }
  .masonry { columns: 1; column-gap: 0; }

  .lb-prev, .lb-next { font-size: 42px; padding: 26px 12px; }
  .about { padding: 90px 22px 100px; }
}
