:root {
  --album-hero-overlay: linear-gradient(120deg, rgba(8, 8, 10, 0.8), rgba(28, 28, 34, 0.6));
}

.album-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  padding: 4rem 6vw;
  background: var(--album-hero-overlay), var(--album-hero, rgba(10, 10, 15, 0.85));
  color: #fff;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.album-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,%3Csvg width="160" height="160" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M0 0h160v160H0z" fill="none"/%3E%3Ccircle cx="80" cy="80" r="50" fill="none" stroke="rgba(255,255,255,0.07)" stroke-width="2"/%3E%3C/svg%3E') repeat;
  opacity: 0.4;
  pointer-events: none;
  z-index: -1;
}

.album-hero__media {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
  max-height: 520px;
}

.album-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.album-hero__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.album-hero__meta {
  font-size: 0.95rem;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  opacity: 0.85;
}

.breadcrumb-link {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumb-link:hover {
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.album-hero h1 {
  font-size: clamp(2rem, 3vw, 3.3rem);
  margin: 0;
}

.album-hero .lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

.album-hero__stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.album-hero__stats li {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem 1.2rem;
}

.album-hero__stats .label {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
}

.album-hero__stats .value {
  font-size: 1.2rem;
  font-weight: 600;
}

.album-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ruc-red, #a00000);
}

.album-hero__badge-row {
  display: flex;
  gap: 0.5rem;
}

.pill {
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.pill--featured {
  background: rgba(255, 191, 0, 0.2);
  color: #ffef9c;
}

.pill--draft {
  background: rgba(255, 255, 255, 0.15);
  color: #ffd3ce;
}

.album-info {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin: 3rem auto;
  padding: 0 6vw;
}

.info-card {
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(15, 15, 20, 0.08);
}

.info-card h2,
.info-card h3 {
  margin-bottom: 1rem;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.info-list dt {
  font-size: 0.85rem;
  color: var(--text-light, #7a7a81);
}

.info-list dd {
  margin: 0;
  font-weight: 600;
}

.info-card.checklist ul {
  margin: 0;
  padding-left: 1rem;
  list-style: disc;
  color: var(--text-light, #5f6168);
}

.album-gallery {
  padding: 3.5rem 6vw;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-header h2 {
  margin: 0.2rem 0 0.5rem;
}

.section-header .muted {
  color: var(--text-light, #6f717a);
}

.muted {
  color: var(--text-light, #6f717a);
}

.gallery-count {
  text-align: right;
  color: var(--text-light, #6f717a);
}

.gallery-count span {
  font-size: 2.5rem;
  display: block;
  color: var(--ruc-red, #a00000);
  font-weight: 600;
}

.photo-grid {
  margin-top: 2rem;
  columns: 4 240px;
  column-gap: 1.5rem;
}

.photo-card {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 18px;
  overflow: hidden;
  background: #f6f6f7;
  position: relative;
  cursor: zoom-in;
  box-shadow: 0 15px 35px rgba(15, 15, 20, 0.12);
  transition: transform 0.25s ease;
}

.photo-card:hover {
  transform: translateY(-4px);
}

.photo-card img {
  width: 100%;
  display: block;
}

.photo-card figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #333;
}

.empty-state {
  background: #fff7f6;
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(160, 0, 0, 0.08);
}

.album-related {
  padding: 3.5rem 6vw 4rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.related-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(15, 15, 20, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.related-card__media {
  display: block;
  padding-bottom: 60%;
  background-size: cover;
  background-position: center;
}

.related-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.album-pager {
  margin: 4rem auto;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.pager-link {
  border-radius: 18px;
  padding: 1rem 1.5rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 15, 20, 0.08);
  min-width: 220px;
  text-decoration: none;
  color: inherit;
}

.pager-link .label {
  font-size: 0.85rem;
  color: var(--text-light, #7a7a81);
}

.pager-link .title {
  font-size: 1.1rem;
  font-weight: 600;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 12, 15, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1200;
  padding: 2rem;
}

.photo-lightbox[hidden] {
  display: none;
}

.photo-lightbox__inner {
  max-width: min(1200px, 90vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #fff;
}

.photo-lightbox__inner img {
  max-height: 70vh;
  width: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.photo-lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .album-hero,
  .album-info,
  .album-gallery,
  .album-related {
    padding: 2.5rem 1.5rem;
  }

  .album-info {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    columns: 2 140px;
  }
}
