.adc-gallery-jump {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  min-height: 44px;
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

#adc-gallery,
#adc-slideshow {
  scroll-margin-top: 136px;
}

.adc-gallery-intro {
  max-width: 44rem;
  margin-bottom: 24px;
}

.adc-gallery-tile {
  display: block;
  overflow: hidden;
  border: 1px solid #d7e4dc;
  border-radius: 16px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
}

.adc-gallery-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.adc-gallery-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  padding: 15px 18px;
  font-weight: 700;
}

.adc-gallery-action {
  color: #315f47;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.adc-gallery-tile:hover {
  border-color: #52765f;
}

.adc-gallery-tile:focus-visible,
.adc-gallery-jump:focus-visible,
.adc-gallery-close:focus-visible {
  outline: 3px solid #32664c;
  outline-offset: 4px;
}

.adc-slideshow {
  max-width: 500px;
  margin-inline: auto;
}

.adc-slideshow h3 {
  margin-bottom: 8px;
}

.adc-slideshow > p {
  margin-bottom: 16px;
}

.adc-slideshow-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #142941;
}

.adc-slideshow-frame::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: var(--adc-slide-image) center / cover no-repeat;
  filter: blur(24px) brightness(0.72);
}

.adc-slideshow-frame img {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.adc-slideshow-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.adc-slideshow-controls[hidden] {
  display: none;
}

.adc-slideshow-controls .btn {
  min-height: 44px;
}

.adc-slideshow-count {
  margin-top: 8px;
  text-align: center;
  color: #52635b;
  font-size: 0.875rem;
}

.adc-gallery-flyers {
  margin-top: 32px;
  text-align: center;
}

.adc-gallery-flyers h3 {
  margin-bottom: 8px;
}

.adc-gallery-flyers > p {
  margin-bottom: 18px;
}

.adc-flyer-tile {
  width: min(100%, 420px);
  margin-inline: auto;
}

.adc-flyer-tile img {
  aspect-ratio: auto;
  object-fit: contain;
}

.adc-gallery-follow {
  margin-top: 22px;
}

.adc-gallery-follow p {
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 700;
}

.adc-gallery-visit {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 30px;
  align-items: start;
  margin-top: 32px;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid #d7e4dc;
  border-radius: 16px;
  background: #fff;
}

.adc-gallery-visit h3 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.adc-gallery-visit .checks {
  margin-top: 0;
}

.adc-gallery-viewer {
  width: min(920px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 28px);
  margin: auto;
  padding: 14px;
  border: 0;
  border-radius: 16px;
  color: var(--navy);
  background: #fff;
}

.adc-gallery-viewer::backdrop {
  background: rgba(12, 28, 45, 0.84);
}

.adc-gallery-viewer form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.adc-gallery-original {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.adc-gallery-close {
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #d7e4dc;
  border-radius: 24px;
  background: #f5f8f7;
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.adc-gallery-viewer figure {
  margin: 0;
}

.adc-gallery-viewer img {
  display: block;
  width: 100%;
  max-height: calc(100dvh - 145px);
  border-radius: 10px;
  background: #f5f8f7;
  object-fit: contain;
}

.adc-gallery-viewer figcaption {
  padding: 10px 3px 2px;
  font-weight: 700;
}

@media (max-width: 650px) {
  .adc-gallery-visit {
    grid-template-columns: minmax(0, 1fr);
  }
}
