/* The single-frame gallery deliberately uses different classes from the former mosaic. */
.home-refresh .home-hero-gallery {
  min-width: 0;
}

.home-refresh .home-hero-main {
  margin: 0;
  min-width: 0;
}

.home-refresh .home-hero-main img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #365747;
}

.home-refresh .home-hero-main figcaption {
  padding: .75rem 0 .55rem;
  color: #e2e9dc;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-refresh .home-hero-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.4rem, .8vw, .75rem);
}

.home-refresh .home-hero-thumbnails button {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 44px;
  padding: 4px;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 3px;
  color: #e2e9dc;
  font: inherit;
  font-size: .75rem;
  cursor: pointer;
  text-align: left;
}

.home-refresh .home-hero-thumbnails button[aria-pressed="true"] {
  border-color: #e4c697;
  background: #365747;
  color: #fff;
}

.home-refresh .home-hero-thumbnails button:hover {
  border-color: #d9b77e;
}

.home-refresh .home-hero-thumbnails button:focus-visible {
  outline: 3px solid #ffe0a3;
  outline-offset: 3px;
}

.home-refresh .home-hero-thumbnails img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.home-refresh .home-hero-thumbnails span {
  display: block;
  padding: .4rem .15rem .2rem;
}

@media (max-width: 560px) {
  .home-refresh .home-hero-thumbnails button { font-size: .68rem; }
}