:root {
  --ink: #151411;
  --paper: #f0ebe2;
  --yellow: #f2ef16;
  --white: #fff;
  --muted: #bdb5ac;
  --dark: #151411;
  --dark-2: #1d1b18;
  --line: rgba(255,255,255,.13);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--dark);
  color: var(--white);
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; width: 100%; }

.brand { display: inline-flex; align-items: center; }
.brand img { width: 168px; height: auto; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  margin: 0;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: .7;
}

/* Login */
.login-page { min-height: 100svh; }
.login-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
}
.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px max(38px, calc((100vw - 1240px) / 2));
  padding-right: clamp(48px, 7vw, 110px);
  background: #171612;
}
.login-panel .brand { margin-bottom: 70px; }
.login-panel h1,
.gallery-hero h1,
.wedding-title h2,
.privacy-note h2 {
  font-family: Italiana, Georgia, serif;
  font-weight: 400;
}
.login-panel h1 {
  margin: 22px 0 20px;
  font-size: clamp(50px, 6vw, 82px);
  line-height: .92;
  letter-spacing: -.035em;
}
.login-panel h1 em,
.gallery-hero h1 em { color: var(--yellow); font-style: normal; }
.login-copy {
  max-width: 560px;
  margin: 0 0 34px;
  color: #c4bdb4;
  font-size: 16px;
  line-height: 1.7;
}
.login-form { max-width: 500px; }
.login-form label {
  display: block;
  margin-bottom: 18px;
  color: #d7d1ca;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.login-form input {
  width: 100%;
  margin-top: 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 0;
  outline: none;
  background: rgba(255,255,255,.055);
  padding: 15px 16px;
  color: #fff;
  transition: border-color .25s, background .25s;
}
.login-form input:focus {
  border-color: rgba(242,239,22,.75);
  background: rgba(255,255,255,.08);
}
.password-field { display: block; position: relative; }
.password-field input { padding-right: 92px; }
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-27%);
  border: 0;
  background: transparent;
  color: var(--yellow);
  padding: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.login-error {
  margin: -2px 0 18px;
  border-left: 2px solid #ff6b6b;
  padding-left: 12px;
  color: #ffc0c0;
  font-size: 13px;
}
.login-submit {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  padding: 15px 22px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .25s, filter .25s;
}
.login-submit:hover { transform: translateY(-2px); filter: brightness(1.04); }
.back-link {
  display: inline-block;
  width: max-content;
  margin-top: 26px;
  color: #aaa39b;
  font-size: 12px;
}
.back-link:hover { color: #fff; }
.login-visual {
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(23,22,18,.34), rgba(23,22,18,.02)),
    linear-gradient(0deg, rgba(0,0,0,.38), transparent 45%),
    url("../../../assets/img/hero.jpg") center 35% / cover no-repeat;
}

/* Gallery */
.gallery-header {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(22px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(18,17,15,.94);
  backdrop-filter: blur(16px);
}
.header-actions { display: flex; align-items: center; gap: 22px; }
.header-actions > a,
.header-actions button {
  border: 0;
  background: transparent;
  color: #bdb7b0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.header-actions > a:hover,
.header-actions button:hover { color: var(--yellow); }
.header-actions form { margin: 0; }

.gallery-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(86px, 10vw, 145px) 22px 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 70px;
}
.gallery-hero-copy { max-width: 860px; }
.gallery-hero h1 {
  margin: 24px 0 24px;
  font-size: clamp(58px, 9vw, 116px);
  line-height: .84;
  letter-spacing: -.045em;
}
.gallery-hero-copy > p:last-child {
  max-width: 700px;
  margin: 0;
  color: #bfb8b0;
  font-size: 17px;
  line-height: 1.7;
}
.gallery-stats {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 28px;
  padding-bottom: 10px;
}
.gallery-stats div { min-width: 76px; }
.gallery-stats strong {
  display: block;
  color: var(--yellow);
  font-family: Italiana, Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}
.gallery-stats span {
  display: block;
  margin-top: 7px;
  color: #8f8982;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.weddings {
  padding: 0 max(22px, calc((100vw - var(--max)) / 2)) 120px;
}
.wedding-block {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 46px;
  padding: 46px 0;
  border-top: 1px solid var(--line);
}
.wedding-block:last-child { border-bottom: 1px solid var(--line); }
.wedding-title {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  align-content: start;
}
.wedding-title > span {
  padding-top: 5px;
  color: var(--yellow);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
}
.wedding-title p {
  margin: 0 0 5px;
  color: #77716a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.wedding-title h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.04;
}
.wedding-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.wedding-videos.single { grid-template-columns: minmax(0, 1fr); }
.wedding-videos.single .private-video-card { max-width: 650px; }
.private-video-card {
  position: relative;
  min-width: 0;
  background: #23211e;
  overflow: hidden;
}
.video-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.thumbnail-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #292724;
}
.thumbnail-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 46%);
  pointer-events: none;
}
.thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .35s;
}
.video-open:hover img { transform: scale(1.035); filter: brightness(1.08); }
.play-button {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;
  background: rgba(0,0,0,.26);
  backdrop-filter: blur(6px);
  font-size: 17px;
  padding-left: 3px;
  transition: transform .3s, background .3s, color .3s;
}
.video-open:hover .play-button {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--yellow);
  border-color: var(--yellow);
  color: #111;
}
.video-type {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.video-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 18px 10px;
}
.video-meta strong {
  color: var(--yellow);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.video-meta span {
  color: #e2ddd6;
  font-family: Italiana, Georgia, serif;
  font-size: 21px;
  text-align: right;
}
.youtube-link {
  display: inline-block;
  margin: 0 18px 17px;
  color: #817b74;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.youtube-link:hover { color: #fff; }

.privacy-note {
  max-width: var(--max);
  margin: 0 auto 120px;
  padding: 52px 22px 0;
}
.privacy-note h2 {
  max-width: 850px;
  margin: 20px 0 18px;
  font-size: clamp(46px, 6vw, 74px);
  line-height: .98;
}
.privacy-note > p:last-child {
  max-width: 760px;
  margin: 0;
  color: #aba49c;
  font-size: 15px;
  line-height: 1.75;
}
.gallery-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 42px max(22px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid rgba(255,255,255,.08);
  color: #7c766f;
  font-size: 11px;
}
.gallery-footer .brand img { width: 148px; }

/* Modal */
.video-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 68px 28px 34px;
  background: rgba(0,0,0,.94);
}
.video-modal.open { display: flex; }
.video-frame-wrap {
  width: min(1120px, 94vw);
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow: 0 28px 100px rgba(0,0,0,.55);
}
.video-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 24px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}
.modal-title {
  width: min(1120px, 94vw);
  margin: 14px 0 0;
  color: #b4ada5;
  font-size: 12px;
}
body.modal-open { overflow: hidden; }

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-panel { min-height: 100svh; padding: 52px 26px; }
  .login-panel .brand { margin-bottom: 55px; }
  .login-visual { display: none; }
  .gallery-hero { grid-template-columns: 1fr; gap: 34px; }
  .gallery-stats { justify-content: start; }
  .wedding-block { grid-template-columns: 1fr; gap: 26px; }
  .wedding-title { max-width: 500px; }
}

@media (max-width: 700px) {
  .gallery-header { height: 68px; }
  .gallery-header .brand img { width: 145px; }
  .header-actions > a { display: none; }
  .gallery-hero { padding-top: 76px; padding-bottom: 54px; }
  .gallery-hero h1 { font-size: 62px; }
  .weddings { padding-bottom: 80px; }
  .wedding-block { padding: 34px 0; }
  .wedding-videos,
  .wedding-videos.single { grid-template-columns: 1fr; }
  .wedding-videos.single .private-video-card { max-width: none; }
  .video-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .video-meta span { text-align: left; }
  .privacy-note { margin-bottom: 80px; }
  .gallery-footer { flex-direction: column; align-items: flex-start; }
  .video-modal { padding-left: 14px; padding-right: 14px; }
  .video-frame-wrap,
  .modal-title { width: 100%; }
}

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