/* Gallery — public styles */
:root {
  --accent: #c8642b;
  --bg: #f6f1e9;
  --paper: #fffdf9;
  --ink: #221d18;
  --ink-2: #5d544a;
  --line: #e6dccd;
  --tile: #ebe2d4;
  --shadow: 0 1px 2px rgba(40, 28, 16, .06), 0 8px 24px rgba(40, 28, 16, .08);
  --radius: 10px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bar-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15120f;
    --paper: #1d1915;
    --ink: #f2ebe1;
    --ink-2: #b3a796;
    --line: #2f2922;
    --tile: #26211b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
.muted { color: var(--ink-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 78svh;
  display: grid; place-items: end start; overflow: hidden;
  background: #1b1612; /* fallback for older browsers */
  background:
    radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%),
    radial-gradient(900px 600px at -10% 110%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    #1b1612;
  color: #fff8ee;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 10, 6, .05) 30%, rgba(15, 10, 6, .72) 100%);
}
.hero:not(.has-cover) .hero-shade {
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px);
}
.hero-inner { position: relative; padding: clamp(28px, 6vw, 72px); padding-bottom: clamp(36px, 7vw, 80px); max-width: 900px; }
.hero-title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(56px, 11vw, 132px);
  line-height: .9; letter-spacing: -.01em; margin: 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero-logo { max-height: 140px; max-width: min(420px, 80vw); object-fit: contain; filter: drop-shadow(0 2px 18px rgba(0, 0, 0, .35)); }
.hero-date {
  margin: 18px 0 0; font-size: 41px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  opacity: 1;
}
.hero-tag { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.4vw, 24px); opacity: .92; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
  padding: 11px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px;
  background: rgba(255, 248, 238, .14); border: 1px solid rgba(255, 248, 238, .35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background .2s;
}
.hero-cta:hover { background: rgba(255, 248, 238, .26); }

/* Hero with cover image: poori image, koi crop nahi, koi khali jagah nahi */
.hero.has-cover {
  display: block;
  min-height: 0;
  background: #1b1612;
}
.hero.has-cover .hero-img {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  transform: none;
  margin: 0;
}

/* Laptop / bada screen: text image ke upar neeche-left me */
@media (min-width: 901px) {
  .hero.has-cover .hero-shade { display: block; }
  .hero.has-cover .hero-inner {
    position: absolute; left: 0; right: 0; bottom: 0;
    max-width: none;
    padding: clamp(24px, 4vw, 56px);
  }
  .hero.has-cover .hero-logo { max-height: 90px; }
  .hero.has-cover .hero-title { font-size: clamp(48px, 7vw, 110px); }
  .hero.has-cover .hero-date { font-size: clamp(18px, 2.4vw, 34px); margin-top: 10px; }
}

/* Tablet / mobile: image poori, text uske neeche */
@media (max-width: 900px) {
  .hero.has-cover .hero-shade { display: none; }
  .hero.has-cover .hero-inner {
    position: relative;
    max-width: none;
    padding: 22px 18px 28px;
  }
  .hero.has-cover .hero-title { font-size: clamp(40px, 12vw, 72px); }
  .hero.has-cover .hero-date { font-size: clamp(16px, 4.5vw, 26px); margin-top: 12px; }
}

/* ---------- Sticky bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20; height: var(--bar-h);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar-inner {
  max-width: 1500px; margin: 0 auto; height: 100%; padding: 0 20px;
  display: flex; align-items: center; gap: 16px;
}
.bar-brand { flex: none; text-decoration: none; display: flex; align-items: center; min-width: 0; }
.bar-brand span { font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1; }
.bar-brand img { height: 36px; width: auto; max-width: 140px; object-fit: contain; }
.tabs {
  flex: 1; display: flex; gap: 4px; justify-content: center; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: 0; background: transparent; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s;
}
.tab:hover { color: var(--ink); background: #c8642b !important; }
.tab.active { background: var(--ink); color: var(--paper); }
.tab .count { font-weight: 500; opacity: .6; font-size: 12px; margin-left: 2px; }
.btn-dl {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: var(--accent); color: #fff; padding: 9px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px; transition: filter .15s;
}
.btn-dl:hover { filter: brightness(1.08); }
@media (max-width: 720px) {
  .bar-inner { padding: 0 12px; gap: 8px; }
  .bar-brand { display: none; }
  .tabs { justify-content: flex-start; }
  .btn-dl span { display: none; }
  .btn-dl { padding: 9px 11px; }
}

/* ---------- Content ---------- */
.view { max-width: 1500px; margin: 0 auto; padding: 28px 20px 60px; min-height: 60vh; }
@media (max-width: 720px) { .view { padding: 18px 10px 40px; } }
.sec { margin-bottom: 48px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin: 0 4px 16px; }
.sec-head h2 { font-family: var(--serif); font-weight: 600; font-size: 34px; margin: 0; line-height: 1; }
.sec-head .meta { color: var(--ink-2); font-size: 13px; }
.sec-head .more {
  margin-left: auto; border: 1px solid var(--line); background: var(--paper);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
}
.sec-head .more:hover { border-color: var(--ink-2); }
.empty { text-align: center; padding: 90px 20px; color: var(--ink-2); }
.empty h2 { font-family: var(--serif); font-size: 36px; color: var(--ink); margin: 0 0 8px; }

/* Masonry */
.masonry { display: flex; gap: var(--gap, 12px); align-items: flex-start; }
.masonry .col { flex: 1; display: flex; flex-direction: column; gap: var(--gap, 12px); min-width: 0; }
@media (max-width: 720px) { .masonry { --gap: 6px; } }

/* Video grid */
.vgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.rgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 720px) {
  .vgrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .rgrid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* Tile */
.tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--tile); cursor: zoom-in;
  aspect-ratio: var(--ar, 4 / 3); isolation: isolate;
}
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s, transform .5s; }
.tile img.in { opacity: 1; }
.tile:hover img { transform: scale(1.025); }
.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tile.video { cursor: pointer; aspect-ratio: 16 / 10; }
.tile.reel { aspect-ratio: 9 / 16; }
.tile .ph {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-2);
  font-size: 12px; font-weight: 600; text-align: center; padding: 10px;
  background: var(--tile);
  background: linear-gradient(135deg, var(--tile), color-mix(in srgb, var(--tile) 70%, var(--accent) 12%));
}
.tile .ph .spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; opacity: .6; }
.tile .play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(20, 14, 9, .45); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .35);
  transition: transform .2s, background .2s; z-index: 2;
}
.tile:hover .play { transform: scale(1.08); background: var(--accent); }
.tile .badge {
  position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 2px 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(15, 10, 6, .6);
}
.tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 22px 10px 8px; text-align: left;
  font-size: 12px; font-weight: 600; color: #fff; opacity: 0; transition: opacity .2s;
  background: linear-gradient(transparent, rgba(10, 6, 3, .65));
}
.tile:hover .cap, .tile.video .cap, .tile.reel .cap { opacity: 1; }
.tile .qdl {
  position: absolute; top: 8px; right: 8px; z-index: 3; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: rgba(15, 10, 6, .45);
  opacity: 0; transition: opacity .2s; text-decoration: none;
}
.tile:hover .qdl { opacity: 1; }
.tile .qdl:hover { background: var(--accent); }
@media (hover: none) { .tile .qdl { display: none; } }

.loader { display: grid; place-items: center; padding: 30px; }
.spinner, .loader::after {
  content: ""; width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite;
}
.spinner { margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.foot { text-align: center; padding: 30px 20px 40px; color: var(--ink-2); font-size: 13px; border-top: 1px solid var(--line); }
.foot .sep { margin: 0 8px; opacity: .5; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; height: 100vh; height: 100dvh; background: #0c0906; color: #f5ede2; display: flex; flex-direction: column; overflow: hidden; }
.lb[hidden] { display: none; }
.lb-top { display: flex; align-items: center; gap: 14px; padding: 10px 14px; flex: none; min-height: 56px; }
.lb-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-pos { font-size: 13px; opacity: .6; white-space: nowrap; }
.lb-actions { margin-left: auto; display: flex; gap: 6px; }
.lb-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08);
  display: grid; place-items: center; color: inherit; text-decoration: none;
}
.lb-btn:hover { background: rgba(255, 255, 255, .18); }
.lb-stage {
  flex: 1 1 auto; min-height: 0; overflow: hidden; position: relative; touch-action: pan-y;
  display: flex; align-items: center; justify-content: center; padding: 0 72px 18px;
}
/* Always fit the photo/video inside the screen (never larger than the viewport) */
.lb-stage img, .lb-stage video {
  display: block; width: auto; height: auto; max-width: 100%;
  max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px);
  object-fit: contain; border-radius: 4px; user-select: none; -webkit-user-drag: none;
}
.lb-stage video { background: #000; }
.lb-stage .lb-msg { text-align: center; max-width: 420px; padding: 24px; }
.lb-stage .lb-msg p { opacity: .8; }
.lb-stage .lb-msg a { display: inline-block; margin-top: 10px; padding: 10px 18px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }
.lb-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center;
}
.lb-nav:hover { background: rgba(255, 255, 255, .2); }
.lb-nav.prev { left: 10px; }
.lb-nav.next { right: 10px; }
.lb-nav[disabled] { opacity: .2; pointer-events: none; }
@media (max-width: 720px) {
  .lb-stage { padding: 0 0 10px; }
  .lb-stage img, .lb-stage video { max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); }
  .lb-nav { width: 42px; height: 42px; background: rgba(0, 0, 0, .35); }
}

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(15, 10, 6, .5); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card {
  position: relative; width: min(560px, 100%); max-height: 86vh; overflow: auto;
  background: var(--paper); border-radius: 16px; padding: 26px; box-shadow: var(--shadow);
}
.modal-card h2 { font-family: var(--serif); font-size: 32px; margin: 0 0 6px; }
.modal-card > p { margin: 0 0 18px; font-size: 14px; }
.modal-x { position: absolute; top: 14px; right: 14px; border: 0; background: var(--tile); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.zip-sec { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.zip-sec h3 { margin: 0; font-size: 16px; }
.zip-sec .meta { font-size: 13px; color: var(--ink-2); margin: 2px 0 10px; }
.zip-parts { display: flex; flex-wrap: wrap; gap: 8px; }
.zip-parts a {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600; text-decoration: none; background: var(--tile); color: var(--ink);
}
.zip-parts a:hover { background: var(--accent); color: #fff; }
.zip-parts a.done { opacity: .55; }
.zip-parts a small { font-weight: 500; opacity: .7; }