/* =========================================================
   ShutterSound — style.css
   Edge-to-edge justified rows with no gaps.
   ========================================================= */

:root{
  --bg-base:      #0a0a0c;
  --text-primary: #efeae2;
  --text-muted:   #9c978d;
  --accent:       #d8a657;
  --line:         rgba(239, 234, 226, 0.1);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{
  width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body, h1, p, figure{ margin: 0; }

body{
  width: 100%;
  overflow-x: hidden;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(216,166,87,0.10), transparent 60%),
    radial-gradient(700px 500px at -10% 10%, rgba(216,166,87,0.05), transparent 60%);
  background-repeat: no-repeat;
}

img{ display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero{
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  animation: rise 0.9s var(--ease) both;
}

.logo{
  font-family: "Fraunces", "Iowan Old Style", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 1.05;
}

.logo em{
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(120deg, var(--accent), #f0d9ad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline{
  margin-top: 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@keyframes rise{
  from{ opacity: 0; transform: translateY(16px); }
  to{ opacity: 1; transform: translateY(0); }
}

/* ---------- Gapless gallery ---------- */
.gallery-wrap{
  width: 100%;
  padding: 0 0 5rem;
  margin: 0;
}

.gallery{
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.gallery-row{
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.photo{
  display: block;
  flex: none;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
  line-height: 0;
  background: #15141a;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.photo img{
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: translateZ(0);
}

/* Hover effects only on devices that really have a mouse. */
@media (hover: hover) and (pointer: fine){
  .photo:hover{
    z-index: 5;
    transform: scale(1.06);
    box-shadow: 0 22px 55px -18px rgba(0, 0, 0, 0.9);
  }
}

/* ---------- Lightbox ---------- */
.lightbox{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 10, 0.68);
  backdrop-filter: blur(22px) saturate(120%);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
}

.lightbox.open{
  display: flex;
  animation: fade-in 0.3s var(--ease) both;
}

.lightbox-content{
  width: 82vw;
  height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8);
  animation: pop-in 0.35s var(--ease) both;
}

.lightbox-close{
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 3;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
  color: var(--text-primary);
  opacity: 0.88;
}

.lightbox-nav{
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 14%;
  min-width: 64px;
  font-size: 2.6rem;
  color: var(--text-primary);
  opacity: 0.7;
}

.lightbox-prev{ left: 0; justify-content: flex-start; padding-left: 1.5rem; }
.lightbox-next{ right: 0; justify-content: flex-end; padding-right: 1.5rem; }

@keyframes fade-in{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

@keyframes pop-in{
  from{ opacity: 0; transform: scale(0.94); }
  to{ opacity: 1; transform: scale(1); }
}

/* ---------- Footer ---------- */
.site-footer{
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}

.footer-instagram{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-email{
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-copy{
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- Phone ---------- */
@media (max-width: 600px){
  .hero{
    padding: 3.75rem 1rem 2.5rem;
  }

  .tagline{
    font-size: 0.7rem;
    letter-spacing: 0.16em;
  }

  .gallery-wrap{
    padding-bottom: 3.5rem;
  }

  .lightbox-content{
    width: 100vw;
    height: 100dvh;
    padding:
      max(64px, env(safe-area-inset-top))
      44px
      max(28px, env(safe-area-inset-bottom));
  }

  .lightbox-content img{
    border-radius: 4px;
  }

  .lightbox-nav{
    width: 64px;
    min-width: 64px;
    font-size: 2.2rem;
  }

  .lightbox-prev{ padding-left: 0.75rem; }
  .lightbox-next{ padding-right: 0.75rem; }

  .site-footer{
    padding: 2.5rem 1rem calc(2.5rem + env(safe-area-inset-bottom));
  }
}
