.gallery-page {
  background:
    radial-gradient(circle at top left, rgba(157, 216, 166, 0.22), transparent 34%),
    linear-gradient(180deg, #f8fbf8 0%, #ffffff 22%, #eef5f1 100%);
}

.gallery-intro,
.gallery-stage,
.gallery-empty {
  max-width: 1100px;
  margin-inline: auto;
}

.gallery-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.gallery-intro__copy > *:first-child {
  margin-top: 0;
}

.gallery-intro__accent {
  display: grid;
  gap: 0.75rem;
  justify-items: end;
}

.gallery-intro__accent span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--g-start);
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.gallery-stage {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(240, 246, 242, 0.98)),
    radial-gradient(circle at top right, rgba(157, 216, 166, 0.18), transparent 28%);
}

.gallery-stage__frame {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.gallery-stage__figure {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #dfe9e3;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.gallery-stage__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.gallery-stage__nav {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px solid rgba(12, 90, 58, 0.14);
  background: #ffffff;
  color: var(--g-start);
  font-size: 1.9rem;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.gallery-stage__nav:hover,
.gallery-stage__nav:focus-visible {
  background: var(--g-start);
  color: #fff;
}

.gallery-stage__meta {
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  text-align: center;
}

.gallery-stage__count {
  margin: 0;
  color: var(--g-start);
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.gallery-stage__note {
  margin: 0;
  max-width: 65ch;
  font-size: 1.05rem;
  min-height: 1.5em;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(12, 90, 58, 0.08);
}

.gallery-strip {
  display: grid;
  gap: 0.7rem;
}

.gallery-strip__label {
  margin: 0;
  color: #466355;
  font-size: 0.95rem;
  font-weight: 700;
}

.gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(110px, 140px);
  gap: 0.8rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(12, 90, 58, 0.35) rgba(0, 0, 0, 0.06);
}

.gallery-thumbs::-webkit-scrollbar {
  height: 0.65rem;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 999px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: rgba(12, 90, 58, 0.35);
  border-radius: 999px;
}

.gallery-thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.gallery-thumb.is-active {
  border-color: var(--g-start);
  transform: translateY(-2px);
}

.gallery-thumb:focus-visible {
  border-color: var(--g-start);
  outline: none;
  box-shadow: 0 0 0 4px rgba(24, 110, 77, 0.18);
}

.gallery-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

@media (max-width: 800px) {
  .gallery-intro {
    grid-template-columns: 1fr;
  }

  .gallery-intro__accent {
    justify-items: start;
  }

  .gallery-stage__frame {
    grid-template-columns: 1fr;
  }

  .gallery-stage__nav {
    width: 100%;
    border-radius: 14px;
  }

  .gallery-thumbs {
    grid-auto-columns: minmax(92px, 110px);
  }

  .gallery-stage {
    padding: 1rem;
  }

  .gallery-stage__note {
    width: 100%;
  }
}
