/* ——— Khusshal Maggo · Actor portfolio ——— */

:root {
  --bg: #faf9f6;
  --ink: #1c1a17;
  --ink-dim: #8b857a;
  --line: #e4e0d8;
  --card: #f1efe9;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ——— Header ——— */

header {
  text-align: center;
  padding: 72px 20px 48px;
}

header .kicker {
  font-size: 12px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 18px;
}

header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

header .stats {
  margin-top: 18px;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}


/* ——— Tabs ——— */

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.tab-card {
  font-family: inherit;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 38px 26px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tab-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.6vw, 36px);
  color: var(--ink);
  line-height: 1.15;
}

.tab-card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.tab-card:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(28, 26, 23, 0.07);
}

.tab-card.active {
  border-color: var(--ink);
  box-shadow: 0 6px 18px rgba(28, 26, 23, 0.07);
}

/* card at the end of a gallery leading to the other section */
.next-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 640px;
  margin: 34px auto 0;
}

.next-card .next-hint {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 10px;
}

/* ——— Sections ——— */

section.gallery-section { padding: 8px 0 24px; }

section.gallery-section[hidden] { display: none; }

/* ——— Photo grid ——— */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.grid figure {
  position: relative;
  background: var(--card);
  border-radius: 6px;
  overflow: hidden;
}

.grid figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.grid figure img:hover { opacity: 0.92; }

.grid figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 14px 12px;
  font-size: 13px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.grid figcaption:empty { display: none; }

/* download button on each photo */
.dl {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}

.dl:hover { transform: scale(1.08); }

.dl svg { width: 17px; height: 17px; }

/* ——— Media coverage list ——— */

.media-list {
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.media-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 6px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background 0.15s ease;
}

.media-item:hover { background: #fff; }

.media-item .outlet {
  flex: 0 0 150px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.media-item .title {
  flex: 1;
  font-family: var(--serif);
  font-size: 18.5px;
  color: var(--ink);
  line-height: 1.35;
}

.media-item .arrow {
  color: var(--ink-dim);
  font-size: 16px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.media-item:hover .arrow {
  color: var(--ink);
  transform: translateX(4px);
}

.media-empty {
  text-align: center;
  color: var(--ink-dim);
  font-size: 15px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 600px) {
  .media-item { flex-direction: column; gap: 6px; padding: 16px 4px; }
  .media-item .outlet { flex: none; }
  .media-item .arrow { display: none; }
}

/* ——— Footer ——— */

footer {
  text-align: center;
  padding: 72px 20px 64px;
  margin-top: 48px;
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 780px;
  margin: 0 auto;
}

.contact-card {
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: none;
  border: none;
  padding: 0;
  color: var(--ink-dim);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.contact-card .ci {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(28, 26, 23, 0.12);
}

.contact-card:hover {
  transform: translateY(-3px);
  color: var(--ink);
}

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .contact-card { font-size: 11.5px; }
  .contact-card .ci { width: 32px; height: 32px; }
}

footer .city {
  margin-top: 14px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

footer .fine {
  margin-top: 40px;
  font-size: 12px;
  color: var(--ink-dim);
}

/* ——— Lightbox ——— */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 50;
  padding: 28px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-height: 78vh;
  max-width: 94vw;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox .lb-bar {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.lightbox .lb-caption {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.lightbox .lb-caption:empty { display: none; }

.lightbox .lb-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.lightbox .lb-download svg { width: 16px; height: 16px; }

.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
}

.lightbox .lb-nav:hover { background: rgba(255, 255, 255, 0.3); }

.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { right: 16px; }

@media (max-width: 760px) {
  .lightbox .lb-nav { width: 42px; height: 42px; font-size: 28px; }
  .lightbox .lb-prev { left: 8px; }
  .lightbox .lb-next { right: 8px; }
}

.lightbox .lb-close {
  position: absolute;
  top: 18px;
  right: 24px;
  font-size: 34px;
  color: rgba(255, 255, 255, 0.8);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.lightbox .lb-close:hover { color: #fff; }

/* ——— Mobile ——— */

@media (max-width: 760px) {
  header { padding: 48px 16px 32px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tabs { grid-template-columns: 1fr; gap: 12px; }
  .tab-card { padding: 26px 20px; }
  section.gallery-section { padding: 8px 0 16px; }
}
