/* ============================================================
   SETHAKGA CONSULTING — CONFERENCE ALBUMS
   Album page, album cards (Gallery), photo strip (Events),
   and the full-screen photo viewer.
   ============================================================ */

/* ── Album hero ── */
.album-hero {
  position: relative;
  margin-top: var(--header-h);
  padding: 90px 0 150px;
  color: #fff;
  background: var(--dark);
  overflow: hidden;
  isolation: isolate;
}
.album-hero-bg {
  position: absolute; inset: -20px; z-index: -2;
  background-size: cover; background-position: center 35%;
  filter: blur(2px) saturate(1.05);
  transform: scale(1.04);
}
.album-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,42,68,.55) 0%, rgba(15,42,68,.78) 55%, rgba(15,42,68,.96) 100%),
    radial-gradient(900px 420px at 85% 0%, rgba(201,169,97,.28), transparent 60%);
}
.album-hero .crumbs, .album-hero .crumbs a { color: var(--gold); }
.album-hero .crumbs { margin-bottom: 26px; }
.album-hero .eyebrow { color: rgba(255,255,255,.82); }
.album-hero h1 {
  color: #fff;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.12;
  max-width: 900px;
  margin-bottom: 26px;
}
.album-hero h1 em { font-style: italic; color: var(--gold); font-weight: 600; }
.album-meta { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-bottom: 34px; color: rgba(255,255,255,.9); font-size: 15px; }
.album-meta span { display: inline-flex; align-items: center; gap: 9px; }
.album-meta svg { color: var(--gold); flex-shrink: 0; }
.album-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.album-hero .btn-white:hover { color: #fff; }

/* ── Highlights mosaic (overlaps the hero) ── */
.album-highlights { margin-top: -110px; position: relative; z-index: 2; }
.mosaic {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 12px;
}
.mosaic a { position: relative; border-radius: 14px; overflow: hidden; background: var(--bg-alt); box-shadow: var(--shadow-lg); }
.mosaic a:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mosaic a:hover img { transform: scale(1.05); }

/* ── Intro + grid ── */
.album-body { padding: 70px 0 90px; }
.album-intro {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end;
  margin-bottom: 36px; padding-bottom: 30px; border-bottom: 1px solid var(--border);
}
.album-intro h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.album-intro p { color: var(--text-muted); font-size: 16.5px; line-height: 1.8; max-width: 640px; }
.album-stats { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }
.album-stat {
  min-width: 128px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--border); text-align: left;
}
.album-stat b { display: block; font-family: 'Playfair Display', serif; font-size: 30px; line-height: 1; color: var(--primary); margin-bottom: 6px; }
.album-stat span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }

/* Justified rows: every photo keeps its shape and the order stays left-to-right */
.jg { display: flex; flex-wrap: wrap; gap: 10px; }
.jg::after { content: ''; flex-grow: 999999; }
.jg-item {
  position: relative; display: block; overflow: hidden; border-radius: 10px;
  flex-grow: calc(var(--r) * 100);
  flex-basis: calc(var(--r) * 240px);
  background: linear-gradient(135deg, var(--bg-alt), var(--primary-soft));
  cursor: zoom-in;
}
.jg-ph { display: block; }
.jg-item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease, opacity .4s ease;
}
.jg-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(15,42,68,.45));
  opacity: 0; transition: opacity .3s ease;
}
.jg-item:hover img { transform: scale(1.045); }
.jg-item:hover::after { opacity: 1; }
.jg-item:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.album-foot { margin-top: 44px; text-align: center; color: var(--text-muted); font-size: 14px; }
.album-foot .credit { margin-top: 6px; font-style: italic; }

/* ── Album cards (Gallery page + "more albums") ── */
.album-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 26px; }
.album-card {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--dark); color: #fff; text-decoration: none;
  box-shadow: var(--shadow); isolation: isolate;
  transition: transform .3s ease, box-shadow .3s ease;
}
.album-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); color: #fff; }
.album-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.album-card:hover img { transform: scale(1.06); }
.album-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,42,68,.05) 30%, rgba(15,42,68,.88) 100%);
}
.album-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px; }
.album-card .tag {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.album-card h3 { color: #fff; font-size: 23px; line-height: 1.3; margin-bottom: 8px; }
.album-card p { color: rgba(255,255,255,.82); font-size: 14px; margin: 0; }
.album-card .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--gold); font-weight: 600; font-size: 14px; }
.album-card .go svg { transition: transform .25s ease; }
.album-card:hover .go svg { transform: translateX(4px); }

.albums-section { padding: 10px 0 30px; }
.albums-section .head { text-align: center; margin-bottom: 34px; }
.albums-section .head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.albums-section .head p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

/* ── Photo strip on past event cards ── */
.event-photos { margin: 18px 0 4px; }
.event-photos-label { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--dark); font-weight: 700; margin-bottom: 10px; }
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photo-strip a { position: relative; display: block; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--bg-alt); }
.photo-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-strip a:hover img { transform: scale(1.08); }
.photo-strip .more {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(15,42,68,.66); color: #fff; font-weight: 600; font-size: 13px; text-align: center; line-height: 1.3;
}
.photo-strip .more b { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--gold); }
.event-poster a { display: block; }
.event-card h3 a { color: inherit; }
.event-card h3 a:hover { color: var(--primary); }

/* ── Full-screen viewer ── */
.pv {
  position: fixed; inset: 0; z-index: 10000; display: none;
  background: #08141F; color: #fff;
  user-select: none; -webkit-user-select: none;
}
.pv.open { display: block; }
.pv-stage { position: absolute; inset: 64px 76px 70px; display: flex; align-items: center; justify-content: center; }
.pv-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55); opacity: 0; transition: opacity .25s ease;
}
.pv-stage img.ready { opacity: 1; }
.pv-spin {
  position: absolute; width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.18); border-top-color: var(--gold);
  animation: pvspin .8s linear infinite; display: none;
}
.pv.loading .pv-spin { display: block; }
@keyframes pvspin { to { transform: rotate(360deg); } }
.pv-top { position: absolute; top: 0; left: 0; right: 0; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px 0 26px; gap: 16px; }
.pv-title { font-size: 14px; color: rgba(255,255,255,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-title b { color: #fff; font-weight: 600; }
.pv-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.pv-count { font-size: 14px; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; margin-right: 6px; }
.pv-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.1); color: #fff; transition: background .2s ease;
}
.pv-btn:hover { background: rgba(255,255,255,.22); }
.pv-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pv-prev, .pv-next { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.pv-prev { left: 14px; } .pv-next { right: 14px; }
.pv-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); font-size: 13px; text-align: center; padding: 0 20px; }
.pv-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.08); }
.pv-bar i { display: block; height: 100%; background: var(--gold); width: 0; transition: width .25s ease; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .album-intro { grid-template-columns: 1fr; align-items: start; }
  .album-stats { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .album-hero { margin-top: var(--header-h-sm); padding: 60px 0 120px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 120px 120px; gap: 8px; }
  .mosaic a:first-child { grid-column: span 2; grid-row: auto; }
  .album-body { padding: 50px 0 70px; }
  .jg { gap: 6px; }
  .jg-item { flex-basis: calc(var(--r) * 150px); border-radius: 7px; }
  .album-stat { min-width: 0; flex: 1; padding: 14px; }
  .album-stat b { font-size: 24px; }
  .pv-stage { inset: 60px 8px 64px; }
  .pv-prev, .pv-next { top: auto; bottom: 9px; transform: none; width: 46px; height: 46px; }
  .pv-prev { left: 12px; } .pv-next { right: 12px; }
  .pv-bottom { padding: 0 70px; }
  .pv-title { display: none; }
  .album-card-body { padding: 20px 22px; }
}
@media (max-width: 480px) {
  .mosaic { grid-template-rows: 180px 100px 100px; }
  .photo-strip { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .jg-item img, .mosaic img, .album-card img, .album-card, .pv-stage img { transition: none; }
}
