/* PNTCOG Jubilee Gallery — WehFiGo-style perf: thumbs in grid, full on open */
.pnt-gallery__lead {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  color: #5c5c54;
  line-height: 1.6;
}

.pnt-gallery__filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
  margin: 0 0 28px;
  position: sticky;
  top: 64px;
  z-index: 30;
  padding: 10px 4px;
  background: #f1f1e9;
  border-bottom: 1px solid rgba(23, 0, 6, 0.08);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.pnt-gallery__filters::-webkit-scrollbar {
  height: 4px;
}

.pnt-gallery__filters::-webkit-scrollbar-thumb {
  background: rgba(23, 0, 6, 0.2);
  border-radius: 999px;
}

.pnt-gallery__filter {
  appearance: none;
  border: 1px solid rgba(23, 0, 6, 0.18);
  background: #fff;
  color: #170006;
  font-family: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  flex: 0 0 auto;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

@media (min-width: 900px) {
  .pnt-gallery__filters {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    top: 88px;
    margin-bottom: 40px;
    padding: 12px 0;
  }
}

.pnt-gallery__filter span {
  display: inline-block;
  margin-left: 0.35rem;
  opacity: 0.65;
  font-weight: 500;
  font-size: 0.85em;
}

.pnt-gallery__filter:hover,
.pnt-gallery__filter:focus-visible {
  border-color: #781921;
  outline: none;
}

.pnt-gallery__filter.is-active {
  background: #170006;
  border-color: #170006;
  color: #f7f4f2;
}

.pnt-gallery__filter.is-active span {
  color: #e8d48b;
  opacity: 1;
}

.pnt-gallery__section {
  margin: 0 0 64px;
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

.pnt-gallery__section.is-hidden {
  display: none;
}

.pnt-gallery__section-head {
  display: grid;
  gap: 6px;
  margin: 0 0 22px;
  max-width: 40rem;
}

.pnt-gallery__section-head h3 {
  margin: 0;
  color: #781921;
  font-family: Cinzel, Georgia, serif;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.pnt-gallery__section-head p {
  margin: 0;
  color: #5c5c54;
  line-height: 1.55;
}

.pnt-gallery__count {
  font-size: 0.9rem;
  font-weight: 700;
  color: #a67c2a;
  letter-spacing: 0.02em;
}

.pnt-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 768px) {
  .pnt-gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (min-width: 1100px) {
  .pnt-gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
  }
}

.pnt-gallery__item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #e8e4dc;
  aspect-ratio: 1 / 1;
  text-decoration: none;
}

.pnt-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.pnt-gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(23, 0, 6, 0.35));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.pnt-gallery__item:hover img,
.pnt-gallery__item:focus-visible img {
  transform: scale(1.04);
}

.pnt-gallery__item:hover::after,
.pnt-gallery__item:focus-visible::after {
  opacity: 1;
}

.pnt-gallery__item:focus-visible {
  outline: 2px solid #a67c2a;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .pnt-gallery__item img,
  .pnt-gallery__item::after,
  .pnt-gallery__filter {
    transition: none;
  }
  .pnt-gallery__item:hover img {
    transform: none;
  }
}

/* Jubilee page album cards */
.pnt-jubilee-albums {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 768px) {
  .pnt-jubilee-albums {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pnt-jubilee-album {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 220px;
  text-decoration: none;
  color: #fff;
  background: #170006;
}

.pnt-jubilee-album img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  opacity: 0.85;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.pnt-jubilee-album__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.35rem;
  background: linear-gradient(180deg, transparent, rgba(10, 0, 4, 0.88));
  display: grid;
  gap: 4px;
}

.pnt-jubilee-album__caption strong {
  font-family: Cinzel, Georgia, serif;
  font-size: 1.15rem;
}

.pnt-jubilee-album__caption span {
  font-size: 0.92rem;
  opacity: 0.9;
}

.pnt-jubilee-album:hover img,
.pnt-jubilee-album:focus-visible img {
  transform: scale(1.04);
  opacity: 1;
}

/* Media hub gallery CTA */
.pnt-media-gallery-cta {
  display: grid;
  gap: 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .pnt-media-gallery-cta {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.pnt-media-gallery-cta__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pnt-media-gallery-cta__grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
