.readers-gallery {
  --rg-navy: #172d43;
  --rg-ink: #203449;
  --rg-gold: #c9a45e;
  --rg-muted: #687888;
  --rg-paper: #f7f6f2;
  overflow-x: clip;
  color: var(--rg-ink);
}

.rg-shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.rg-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rg-hero {
  position: relative;
  display: flex;
  min-height: 420px;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(ellipse at 80% 25%, rgba(201, 164, 94, .18), transparent 32%),
    linear-gradient(115deg, #142a40 0%, #203c55 58%, #29465b 100%);
}

.rg-hero__content {
  position: relative;
  z-index: 2;
  padding-block: 74px 80px;
}

.rg-eyebrow {
  margin: 0 0 14px;
  color: #e0c27d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.6;
  text-transform: uppercase;
}

.rg-hero h1 {
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.rg-hero__lead {
  max-width: 540px;
  margin: 20px 0 27px;
  color: rgba(255, 255, 255, .78);
  font-size: 17px;
  line-height: 1.75;
}

.rg-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f2d795;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.rg-hero__link span {
  font-size: 19px;
  transition: transform .25s ease;
}

.rg-hero__link:hover span {
  transform: translateY(4px);
}

.rg-hero__pattern {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: .46;
  pointer-events: none;
}

.rg-hero__pattern svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.rg-hero__pattern path,
.rg-hero__pattern circle {
  fill: none;
  stroke: rgba(231, 205, 149, .43);
  stroke-width: 1;
}

.rg-hero__pattern circle:nth-of-type(2) {
  stroke-dasharray: 2 8;
}

.rg-hero__pattern .rg-hero__spark path {
  stroke: #e7cd95;
  stroke-width: 2;
  stroke-linecap: round;
}

.rg-hero__dots circle {
  fill: #e7cd95;
  stroke: none;
}

.rg-hero__orb {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(226, 197, 133, .35);
  border-radius: 50%;
  pointer-events: none;
}

.rg-hero__orb--one {
  top: 44px;
  right: 9%;
  width: 15px;
  height: 15px;
  background: #d5b56d;
  box-shadow: 0 0 0 9px rgba(213, 181, 109, .08);
  animation: rg-float 5s ease-in-out infinite;
}

.rg-hero__orb--two {
  right: 18%;
  bottom: 68px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, .04);
  animation: rg-float 6s ease-in-out -2s infinite;
}

.rg-hero__badge {
  position: absolute;
  right: max(8%, calc((100% - 1160px) / 2 + 30px));
  bottom: 53px;
  width: 74px;
  height: 74px;
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 22px;
  background: rgba(255, 255, 255, .07);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
  backdrop-filter: blur(8px);
  transform: rotate(7deg);
}

.rg-hero__badge svg {
  width: 100%;
  fill: none;
  stroke: #e6cd94;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.rg-intro {
  display: grid;
  grid-template-columns: 70px minmax(0, 720px);
  gap: 25px;
  align-items: center;
  padding-block: 74px 71px;
}

.rg-intro__mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid #e8dfcd;
  border-radius: 20px;
  background: #fbf8f0;
}

.rg-intro__mark svg {
  width: 42px;
  fill: none;
  stroke: var(--rg-gold);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.rg-eyebrow--dark {
  margin-bottom: 9px;
  color: #9b7b3d;
  letter-spacing: .15em;
}

.rg-intro h2,
.rg-collection h2,
.rg-cta h2 {
  margin: 0;
  color: var(--rg-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.2;
}

.rg-intro p:last-child {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--rg-muted);
  font-size: 15px;
  line-height: 1.8;
}

.rg-collection {
  padding-block: 72px 94px;
  background: var(--rg-paper);
}

.rg-collection__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  margin-bottom: 28px;
}

.rg-collection__heading h2 {
  font-size: clamp(28px, 3vw, 36px);
}

.rg-count {
  flex: 0 0 auto;
  margin: 0 0 5px;
  color: #657486;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.rg-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 29px;
}

.rg-filters {
  display: flex;
  max-width: 100%;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scrollbar-width: thin;
  scrollbar-color: #d2c5a6 transparent;
}

.rg-filter {
  position: relative;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid #e0e3e5;
  border-radius: 999px;
  color: #58697a;
  background: rgba(255, 255, 255, .82);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  transition: color .25s ease, background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.rg-filter:hover {
  border-color: #c7b27e;
  color: var(--rg-navy);
}

.rg-filter.is-active {
  border-color: var(--rg-navy);
  color: #fff;
  background: var(--rg-navy);
  box-shadow: 0 5px 14px rgba(23, 45, 67, .16);
}

.rg-filter.is-active::after {
  position: absolute;
  right: 17px;
  bottom: 5px;
  left: 17px;
  height: 1px;
  background: var(--rg-gold);
  content: "";
  animation: rg-indicator .24s ease both;
}

.rg-search {
  display: flex;
  width: min(240px, 100%);
  min-width: 190px;
  height: 43px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid #e0e3e5;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.rg-search:focus-within {
  border-color: #b99b5e;
  box-shadow: 0 0 0 3px rgba(201, 164, 94, .14);
}

.rg-search svg {
  width: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: #788797;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.rg-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--rg-ink);
  background: transparent;
  font: inherit;
  font-size: 13px;
}

.rg-search input::placeholder {
  color: #8b97a2;
}

.rg-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 142px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.rg-card {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  background: #d9dee0;
  box-shadow: 0 8px 22px rgba(28, 43, 57, .09);
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .42s ease, transform .42s ease, box-shadow .35s ease;
}

.rg-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.rg-card:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.rg-card:nth-child(4) {
  grid-row: span 2;
}

.rg-card:nth-child(8) {
  grid-column: span 2;
}

.rg-card.is-filtering-out {
  opacity: 0;
  transform: translateY(10px) scale(.985);
}

.rg-card[hidden] {
  display: none;
}

.rg-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.rg-card:hover,
.rg-card:focus-visible {
  z-index: 1;
  box-shadow: 0 16px 34px rgba(28, 43, 57, .18);
}

.rg-card:hover img,
.rg-card:focus-visible img {
  transform: scale(1.03);
}

.rg-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: #fff;
  text-align: left;
  background: linear-gradient(180deg, rgba(11, 25, 39, .36), transparent 38%, transparent 48%, rgba(11, 25, 39, .75));
  opacity: .78;
  transition: opacity .3s ease;
}

.rg-card:hover .rg-card__overlay,
.rg-card:focus-visible .rg-card__overlay {
  opacity: 1;
}

.rg-card__label {
  align-self: flex-start;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 999px;
  background: rgba(21, 40, 57, .42);
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
}

.rg-card__open {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}

.rg-card__open span {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 50%;
  font-size: 16px;
  transition: transform .25s ease, background .25s ease;
}

.rg-card:hover .rg-card__open span,
.rg-card:focus-visible .rg-card__open span {
  transform: translate(2px, -2px);
  background: rgba(255, 255, 255, .17);
}

.rg-empty {
  padding: 44px 20px;
  border: 1px dashed #d3d8dc;
  border-radius: 14px;
  background: rgba(255, 255, 255, .56);
  text-align: center;
}

.rg-empty[hidden] {
  display: none;
}

.rg-empty > span {
  color: var(--rg-gold);
  font-size: 25px;
}

.rg-empty h3 {
  margin: 8px 0 5px;
  color: var(--rg-navy);
  font: 400 24px/1.3 Georgia, "Times New Roman", serif;
}

.rg-empty p {
  margin: 0;
  color: var(--rg-muted);
  font-size: 14px;
}

.rg-cta {
  position: relative;
  width: min(1160px, calc(100% - 48px));
  margin-block: 82px;
  padding: 58px 30px;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 20%, rgba(201, 164, 94, .12), transparent 25%),
    #f5f2e9;
  text-align: center;
}

.rg-cta .rg-eyebrow {
  margin-bottom: 12px;
}

.rg-cta h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(28px, 3.5vw, 40px);
}

.rg-cta > p:not(.rg-eyebrow) {
  position: relative;
  z-index: 1;
  margin: 12px 0 24px;
  color: var(--rg-muted);
  font-size: 14px;
}

.rg-cta__ornament {
  position: absolute;
  top: 50%;
  right: 7%;
  width: 116px;
  opacity: .55;
  transform: translateY(-50%);
}

.rg-cta__ornament svg {
  width: 100%;
  fill: none;
  stroke: #cbb780;
  stroke-width: .8;
}

.rg-cta__actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
}

.rg-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.rg-button:hover {
  transform: translateY(-2px);
}

.rg-button--gold {
  color: #1d3040;
  background: #d6bb78;
  box-shadow: 0 7px 18px rgba(155, 123, 61, .18);
}

.rg-button--gold:hover {
  background: #e1c985;
}

.rg-button--outline {
  border-color: #c9cfd2;
  color: var(--rg-navy);
  background: rgba(255, 255, 255, .58);
}

.rg-button--outline:hover {
  border-color: #9b7b3d;
  background: #fff;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rg-lightbox {
  position: fixed;
  inset: 0;
  display: grid;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 15px;
  padding: 32px;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: rgba(9, 17, 25, .96);
  opacity: 0;
  transition: opacity .24s ease;
}

.rg-lightbox:not([open]) {
  display: none;
}

.rg-lightbox[open] {
  opacity: 1;
}

.rg-lightbox.is-closing {
  opacity: 0;
}

.rg-lightbox::backdrop {
  background: rgba(9, 17, 25, .96);
}

.rg-lightbox__stage {
  display: grid;
  min-width: 0;
  height: 100%;
  max-height: calc(100vh - 64px);
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  align-items: center;
  gap: 18px;
}

.rg-lightbox__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  opacity: 1;
  transform: scale(1);
  transition: opacity .18s ease, transform .24s ease;
}

.rg-lightbox__image.is-changing {
  opacity: 0;
  transform: scale(.985);
}

.rg-lightbox__caption {
  display: flex;
  width: min(100%, 900px);
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.rg-lightbox__close,
.rg-lightbox__nav {
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .32);
  color: #fff;
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.rg-lightbox__close:hover,
.rg-lightbox__nav:hover {
  color: #1b2d3d;
  background: #e2c77e;
}

.rg-lightbox__close {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 27px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
}

.rg-lightbox__nav {
  width: 52px;
  height: 52px;
  justify-self: center;
  border-radius: 50%;
  font-size: 38px;
  line-height: 1;
}

.rg-lightbox__nav--prev:hover {
  transform: translateX(-2px);
}

.rg-lightbox__nav--next:hover {
  transform: translateX(2px);
}

.rg-lightbox__close:focus-visible,
.rg-lightbox__nav:focus-visible,
.rg-filter:focus-visible,
.rg-card:focus-visible,
.rg-button:focus-visible {
  outline: 3px solid #e1c985;
  outline-offset: 3px;
}

body.rg-lightbox-open {
  overflow: hidden;
}

@keyframes rg-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes rg-indicator {
  from { transform: scaleX(.2); opacity: .3; }
  to { transform: scaleX(1); opacity: 1; }
}

@media (min-width: 1200px) {
  .rg-grid {
    grid-auto-rows: 160px;
    gap: 19px;
  }
}

@media (max-width: 900px) {
  .rg-hero {
    min-height: 390px;
  }

  .rg-hero__badge {
    right: 7%;
    bottom: 45px;
  }

  .rg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 155px;
  }

  .rg-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .rg-card:nth-child(4) {
    grid-row: span 2;
  }

  .rg-card:nth-child(8) {
    grid-column: span 1;
  }

  .rg-cta__ornament {
    right: 3%;
    opacity: .28;
  }
}

@media (max-width: 640px) {
  .rg-shell {
    width: min(100% - 36px, 520px);
  }

  .rg-hero {
    min-height: 365px;
  }

  .rg-hero__content {
    padding-block: 65px 68px;
  }

  .rg-hero__lead {
    max-width: 400px;
    font-size: 15px;
  }

  .rg-hero__badge {
    right: 22px;
    bottom: 22px;
    width: 56px;
    height: 56px;
    padding: 14px;
  }

  .rg-hero__pattern {
    left: -28%;
    width: 150%;
    opacity: .36;
  }

  .rg-intro {
    grid-template-columns: 1fr;
    gap: 17px;
    padding-block: 52px 50px;
  }

  .rg-intro__mark {
    width: 54px;
    height: 54px;
    border-radius: 17px;
  }

  .rg-intro__mark svg {
    width: 36px;
  }

  .rg-collection {
    padding-block: 54px 65px;
  }

  .rg-collection__heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }

  .rg-count {
    margin: 0;
  }

  .rg-tools {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 19px;
  }

  .rg-filters {
    margin-inline: -2px;
  }

  .rg-filter {
    min-height: 39px;
    padding-inline: 14px;
  }

  .rg-search {
    width: 100%;
  }

  .rg-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 13px;
  }

  .rg-card,
  .rg-card:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
    height: clamp(210px, 68vw, 340px);
  }

  .rg-card:nth-child(1) {
    height: clamp(250px, 80vw, 380px);
  }

  .rg-card__overlay {
    padding: 14px;
    opacity: 1;
  }

  .rg-cta {
    width: calc(100% - 36px);
    margin-block: 55px;
    padding: 44px 19px;
  }

  .rg-cta__ornament {
    top: 8px;
    right: 1px;
    width: 75px;
    transform: none;
  }

  .rg-cta__actions {
    flex-direction: column;
  }

  .rg-lightbox {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 6px;
    padding: 54px 10px 22px;
  }

  .rg-lightbox__stage {
    max-height: calc(100dvh - 82px);
    gap: 12px;
  }

  .rg-lightbox__nav {
    width: 38px;
    height: 38px;
    font-size: 30px;
  }

  .rg-lightbox__close {
    top: 12px;
    right: 13px;
    width: 38px;
    height: 38px;
    font-size: 27px;
  }

  .rg-lightbox__caption {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .readers-gallery *,
  .readers-gallery *::before,
  .readers-gallery *::after,
  .rg-lightbox,
  .rg-lightbox * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  [data-reveal],
  .rg-card {
    opacity: 1;
    transform: none;
  }
}
