.issue-gallery-01 {
  --issue-gallery-bg: var(--color-bg, #ffffff);
  --issue-gallery-surface: var(--color-surface, #f4f7fb);
  --issue-gallery-ink: var(--color-text-primary, #122033);
  --issue-gallery-muted: var(--color-text-secondary, #667085);
  --issue-gallery-line: var(--color-border, #d9e2ef);
  --issue-gallery-primary: var(--color-primary, #12326f);
  --issue-gallery-accent: var(--color-secondary, #d8a044);
  background:
    linear-gradient(180deg, rgba(18, 50, 111, 0.04), rgba(18, 50, 111, 0) 34%),
    var(--issue-gallery-bg);
  color: var(--issue-gallery-ink);
  overflow: hidden;
  padding: 112px 0;
  position: relative;
}

.issue-gallery-01 *,
.issue-gallery-01 *::before,
.issue-gallery-01 *::after {
  box-sizing: border-box;
}

.issue-gallery-01__container {
  margin: 0 auto;
  max-width: 1320px;
  padding: 0 24px;
}

.issue-gallery-01__header {
  align-items: end;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  margin-bottom: 34px;
}

.issue-gallery-01__label {
  align-items: center;
  background: color-mix(in srgb, var(--issue-gallery-accent) 24%, #fff);
  border: 1px solid color-mix(in srgb, var(--issue-gallery-accent) 48%, transparent);
  border-radius: var(--radius-pill);
  color: var(--issue-gallery-ink);
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: 18px;
  padding: 9px 16px;
  text-transform: uppercase;
}

.issue-gallery-01__title {
  color: var(--issue-gallery-ink);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
  max-width: 780px;
}

.issue-gallery-01__subtitle {
  color: var(--issue-gallery-muted);
  font-size: 17px;
  line-height: 1.75;
  margin: 0;
}

.issue-gallery-01__cta-wrap {
  margin-top: 24px;
}

.issue-gallery-01__cta {
  align-items: center;
  background: var(--issue-gallery-primary);
  border-radius: var(--radius-pill);
  color: #fff;
  display: inline-flex;
  font-size: 14px;
  font-weight: 850;
  min-height: 48px;
  padding: 15px 24px;
  text-decoration: none;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.issue-gallery-01__cta:hover,
.issue-gallery-01__cta:focus-visible {
  background: color-mix(in srgb, var(--issue-gallery-primary) 82%, #000);
  box-shadow: 0 18px 42px rgba(18, 50, 111, 0.22);
  color: #fff;
  outline: 0;
  transform: translateY(-2px);
}

.issue-gallery-01[data-enable-cta="false"] .issue-gallery-01__cta-wrap,
.issue-gallery-01[data-enable-cta="0"] .issue-gallery-01__cta-wrap,
.issue-gallery-01[data-enable-filter="false"] .issue-gallery-01__filters,
.issue-gallery-01[data-enable-filter="0"] .issue-gallery-01__filters,
.issue-gallery-01[data-enable-overlay="false"] .issue-gallery-01__overlay,
.issue-gallery-01[data-enable-overlay="0"] .issue-gallery-01__overlay,
.issue-gallery-01[data-enable-lightbox="false"] .issue-gallery-01__lightbox,
.issue-gallery-01[data-enable-lightbox="0"] .issue-gallery-01__lightbox {
  display: none;
}

.issue-gallery-01__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.issue-gallery-01__filter {
  background: var(--issue-gallery-surface);
  border: 1px solid var(--issue-gallery-line);
  border-radius: var(--radius-pill);
  color: var(--issue-gallery-ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  padding: 12px 16px;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.issue-gallery-01__filter:hover,
.issue-gallery-01__filter:focus-visible,
.issue-gallery-01__filter.is-active {
  background: var(--issue-gallery-primary);
  border-color: var(--issue-gallery-primary);
  color: #fff;
  outline: 0;
  transform: translateY(-1px);
}

.issue-gallery-01__grid {
  display: grid;
  gap: 18px;
  grid-auto-flow: dense;
  grid-auto-rows: 120px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.issue-gallery-01__item {
  grid-column: span 2;
  grid-row: span 3;
  min-width: 0;
}

.issue-gallery-01__item.is-featured {
  grid-column: span 4;
  grid-row: span 4;
}

.issue-gallery-01__item.aspect-square {
  grid-row: span 3;
}

.issue-gallery-01__item.aspect-portrait {
  grid-row: span 4;
}

.issue-gallery-01__item.aspect-wide {
  grid-column: span 4;
  grid-row: span 3;
}

.issue-gallery-01__card {
  background: #0f172a;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.14);
  color: #fff;
  display: block;
  height: 100%;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.issue-gallery-01__media {
  height: 100%;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.issue-gallery-01__media::after {
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.02) 18%, rgba(2, 6, 23, 0.48) 62%, rgba(2, 6, 23, 0.88) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.issue-gallery-01__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: filter 0.55s ease, transform 0.7s ease;
  width: 100%;
}

.issue-gallery-01__card:hover .issue-gallery-01__media img,
.issue-gallery-01__card:focus-visible .issue-gallery-01__media img {
  filter: saturate(1.08) contrast(1.05);
  transform: scale(1.055);
}

.issue-gallery-01__overlay {
  display: flex;
  flex-direction: column;
  inset: 0;
  justify-content: space-between;
  padding: 24px;
  position: absolute;
  z-index: 2;
}

.issue-gallery-01__badge {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-pill);
  color: #111827;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 9px 12px;
  text-transform: uppercase;
}

.issue-gallery-01__copy {
  max-width: 640px;
}

.issue-gallery-01__item-title {
  color: #fff;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
}

.issue-gallery-01__item:not(.is-featured) .issue-gallery-01__item-title {
  font-size: 21px;
}

.issue-gallery-01__caption {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.55;
  margin: 10px 0 0;
  max-width: 560px;
}

.issue-gallery-01__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 16px 0 0;
}

.issue-gallery-01__meta div {
  display: flex;
  gap: 6px;
}

.issue-gallery-01__meta dt {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.issue-gallery-01__meta dd {
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  margin: 0;
}

.issue-gallery-01__item[hidden] {
  display: none;
}

.issue-gallery-01__lightbox {
  align-items: center;
  background: rgba(4, 10, 24, 0.92);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 42px;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.25s ease;
  z-index: 9999;
}

.issue-gallery-01__lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.issue-gallery-01__lightbox-frame {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  margin: 0;
  max-height: 88vh;
  max-width: 1180px;
  overflow: hidden;
  width: min(100%, 1180px);
}

.issue-gallery-01__lightbox-image {
  background: #020617;
  display: block;
  height: 88vh;
  max-height: 760px;
  object-fit: contain;
  width: 100%;
}

.issue-gallery-01__lightbox-caption {
  background: var(--color-bg);
  color: var(--issue-gallery-ink);
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 34px;
}

.issue-gallery-01__lightbox-category {
  color: var(--issue-gallery-primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.issue-gallery-01__lightbox-caption h3 {
  color: var(--issue-gallery-ink);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.12;
  margin: 12px 0 0;
}

.issue-gallery-01__lightbox-caption p {
  color: var(--issue-gallery-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 14px 0 0;
}

.issue-gallery-01__lightbox-caption dl {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.issue-gallery-01__lightbox-caption dl div {
  border-top: 1px solid var(--issue-gallery-line);
  display: grid;
  gap: 8px;
  grid-template-columns: 92px 1fr;
  padding-top: 10px;
}

.issue-gallery-01__lightbox-caption dt {
  color: var(--issue-gallery-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.issue-gallery-01__lightbox-caption dd {
  color: var(--issue-gallery-ink);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.issue-gallery-01__lightbox-close,
.issue-gallery-01__lightbox-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  border-radius: var(--radius-pill);
  color: #111827;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  height: 48px;
  justify-content: center;
  position: fixed;
  transition: background 0.2s ease, transform 0.2s ease;
  width: 48px;
}

.issue-gallery-01__lightbox-close {
  right: 24px;
  top: 24px;
}

.issue-gallery-01__lightbox-prev {
  left: 24px;
  top: 50%;
}

.issue-gallery-01__lightbox-next {
  right: 24px;
  top: 50%;
}

.issue-gallery-01__lightbox-close:hover,
.issue-gallery-01__lightbox-nav:hover,
.issue-gallery-01__lightbox-close:focus-visible,
.issue-gallery-01__lightbox-nav:focus-visible {
  background: var(--issue-gallery-accent);
  outline: 0;
  transform: translateY(-1px);
}

.issue-gallery-01-lightbox-open {
  overflow: hidden;
}

@media (max-width: 1199px) {
  .issue-gallery-01__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .issue-gallery-01__item,
  .issue-gallery-01__item.is-featured,
  .issue-gallery-01__item.aspect-wide {
    grid-column: span 2;
  }
}

@media (max-width: 991px) {
  .issue-gallery-01 {
    padding: 86px 0;
  }

  .issue-gallery-01__header {
    grid-template-columns: 1fr;
  }

  .issue-gallery-01__grid {
    grid-auto-rows: 112px;
  }

  .issue-gallery-01__lightbox-frame {
    grid-template-columns: 1fr;
    max-height: 90vh;
  }

  .issue-gallery-01__lightbox-image {
    height: 58vh;
  }

  .issue-gallery-01__lightbox-caption {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .issue-gallery-01 {
    padding: 68px 0;
  }

  .issue-gallery-01__container {
    padding: 0 16px;
  }

  .issue-gallery-01__grid {
    display: block;
  }

  .issue-gallery-01__item {
    height: auto;
    margin-bottom: 16px;
  }

  .issue-gallery-01__card {
    aspect-ratio: 4 / 5;
  }

  .issue-gallery-01__item.is-featured .issue-gallery-01__card,
  .issue-gallery-01__item.aspect-wide .issue-gallery-01__card {
    aspect-ratio: 16 / 11;
  }

  .issue-gallery-01__overlay {
    padding: 18px;
  }

  .issue-gallery-01__caption {
    display: none;
  }

  .issue-gallery-01__meta {
    margin-top: 12px;
  }

  .issue-gallery-01__lightbox {
    padding: 18px;
  }

  .issue-gallery-01__lightbox-close {
    right: 14px;
    top: 14px;
  }

  .issue-gallery-01__lightbox-prev,
  .issue-gallery-01__lightbox-next {
    bottom: 18px;
    top: auto;
  }
}
