[hidden] {
  display: none !important;
}

:root {
  --bg: #f5f0eb;
  --paper: rgba(255, 253, 250, 0.9);
  --ink: #2f2925;
  --muted: #7a6e67;
  --line: #ded2ca;
  --accent: #9c8171;
  --accent-soft: #eadfd7;
  --shadow: 0 24px 70px rgba(62, 48, 40, 0.1);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f3ef 0%, #f2ece7 100%);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
body.lightbox-open {
  overflow: hidden;
}
button,
a,
input {
  font: inherit;
}

.page-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}
.page-glow-a {
  top: -160px;
  right: -100px;
  background: #d9c6b9;
}
.page-glow-b {
  bottom: -200px;
  left: -120px;
  background: #e4d6cc;
}

.access-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.access-card {
  width: min(460px, 100%);
  padding: 42px 34px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
}
.access-card h1 {
  margin: 10px 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.1rem;
  line-height: 1;
}
.access-copy {
  margin: 0 auto 28px;
  max-width: 350px;
  color: var(--muted);
  line-height: 1.65;
}
.access-form {
  display: grid;
  gap: 10px;
  text-align: left;
}
.access-form label {
  font-size: 0.82rem;
  font-weight: 600;
}
.access-form input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 15px;
  background: #fffdfa;
  color: var(--ink);
  outline: none;
}
.access-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(156, 129, 113, 0.12);
}
.access-error {
  margin: 4px 0 0;
  color: #9a4035;
  text-align: center;
  font-size: 0.86rem;
}

.hero {
  padding: 70px 20px 42px;
  text-align: center;
}
.hero h1 {
  margin: 12px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.6rem, 10vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
}
.hero h1 span {
  color: var(--accent);
}
.subtitle {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--muted);
  line-height: 1.7;
}
.page {
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto;
  padding-bottom: 60px;
}

.gallery-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.gallery-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 22px;
}
.gallery-head h2 {
  margin: 7px 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}
.section-copy {
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  line-height: 1.65;
}
.gallery-meta {
  text-align: right;
}
.gallery-meta span {
  display: block;
}
#fileCount {
  font-weight: 600;
}
#selectedCount {
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 4px;
}

.toolbar {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.9);
  backdrop-filter: blur(15px);
}
.toolbar-spacer {
  flex: 1;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
}
.button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}
.button-dark {
  background: var(--ink);
  color: #fff;
}
.button-soft {
  background: var(--accent-soft);
  color: var(--ink);
}
.button-ghost {
  background: transparent;
  color: var(--muted);
}
.button-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.button-light {
  background: #fff;
  color: var(--ink);
}
.status {
  margin: 8px 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f1e8e2;
  color: #6e5b50;
}

.gallery {
  columns: 4 240px;
  column-gap: 10px;
}
.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 10px;
  overflow: hidden;
  border-radius: 15px;
  background: #e9dfd8;
  break-inside: avoid;
  cursor: zoom-in;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 160px;
  object-fit: cover;
}
.gallery-item.selected {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}
.select-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: rgba(35, 29, 26, 0.36);
  color: #fff;
  cursor: pointer;
}
.gallery-item.selected .select-button {
  background: var(--ink);
}
.gallery-item.selected .select-button::before {
  content: "✓";
  font-weight: 700;
}
.item-actions {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.item-name {
  overflow: hidden;
  color: #fff;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.item-download {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
}
.video-card {
  aspect-ratio: 4/3;
}
.video-card img {
  height: 100%;
}
.video-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(36, 29, 25, 0.58);
  font-size: 1.1rem;
  pointer-events: none;
}
.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
}
.footer {
  padding: 56px 20px 18px;
  text-align: center;
}
.footer-script {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}
.footer-small {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
}
.lightbox[hidden] {
  display: none;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 20, 18, 0.94);
  backdrop-filter: blur(12px);
}
.lightbox-content {
  position: absolute;
  inset: 64px 78px 28px;
  display: flex;
  flex-direction: column;
}
.lightbox-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
}
.lightbox-stage img,
.lightbox-stage video {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  object-fit: contain;
  border-radius: 12px;
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 103;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  cursor: pointer;
}
.lightbox-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
}
.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  font-size: 2.1rem;
}
.lightbox-prev {
  left: 16px;
}
.lightbox-next {
  right: 16px;
}
.lightbox-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  color: #fff;
}
.lightbox-copy strong,
.lightbox-copy span {
  display: block;
}
.lightbox-copy span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.8rem;
}
.lightbox-actions {
  display: flex;
  gap: 8px;
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 820px) {
  .gallery-card {
    padding: 18px;
  }
  .gallery-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .gallery-meta {
    text-align: left;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar-spacer {
    display: none;
  }
  .toolbar .button {
    flex: 1 1 calc(50% - 8px);
  }
  .lightbox-content {
    inset: 62px 16px 18px;
  }
}
@media (max-width: 560px) {
  .page {
    width: calc(100% - 16px);
  }
  .access-card {
    padding: 34px 20px;
    border-radius: 22px;
  }
  .hero {
    padding: 42px 16px 30px;
  }
  .hero h1 {
    font-size: 3.8rem;
  }
  .gallery-card {
    padding: 12px;
    border-radius: 18px;
  }
  .gallery {
    columns: 2;
    column-gap: 7px;
  }
  .gallery-item {
    margin-bottom: 7px;
    border-radius: 10px;
  }
}

.terms-link:hover {
  color: #2f2926;
  text-decoration-color: #5f514a;
}
.section-2 {
  color: black;
  text-align: center;
  background-color: white;
  margin-top: 50px;
  padding-top: 10px;
}

.w-layout-blockcontainer {
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

@media screen and (max-width: 991px) {
  .w-layout-blockcontainer {
    max-width: 728px;
  }
}

@media screen and (max-width: 767px) {
  .w-layout-blockcontainer {
    max-width: none;
  }
}

.w-inline-block {
  max-width: 100%;
  display: inline-block;
}

.logo {
  max-height: 40vh;
  max-width: 100%;
}

a {
  color: black;
}
