::selection {
  color: #fff;
  background: #088194;
}

/* Our Gallery */
/* ---------- 7-image repeating pattern ---------- */
#our-gallery .gallery-grid > :nth-child(7n + 7) {
  grid-column: span 2;
  grid-row: span 2;
}
@media (min-width: 768px) {
  #our-gallery .gallery-grid > :nth-child(7n + 1) {
    grid-column: span 4;
  }
  #our-gallery .gallery-grid > :nth-child(7n + 2) {
    grid-column: span 5;
  }
  #our-gallery .gallery-grid > :nth-child(7n + 3) {
    grid-column: span 3;
  }
  #our-gallery .gallery-grid > :nth-child(7n + 4) {
    grid-column: span 4;
  }
  #our-gallery .gallery-grid > :nth-child(7n + 5) {
    grid-column: span 8;
    grid-row: span 2;
  }
  #our-gallery .gallery-grid > :nth-child(7n + 6) {
    grid-column: span 4;
  }
  #our-gallery .gallery-grid > :nth-child(7n + 7) {
    grid-column: span 12;
    grid-row: span 2;
  }
}

/* ---------- Hover: dark faded tint + zoom icon in the centre ---------- */
#our-gallery .gallery-item::before,
#our-gallery .gallery-item::after {
  content: "";
  position: absolute;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
/* tint */
#our-gallery .gallery-item::before {
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
}
/* zoom icon */
#our-gallery .gallery-item::after {
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 5rem;
  height: 3rem;
  transform: translate(-50%, -50%) scale(0.8);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='butt' stroke-linejoin='miter'%3E%3Cpath d='M3 9V3h6M15 3h6v6M21 15v6h-6M9 21H3v-6'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
/* videos already have a play button, so no zoom icon */
#our-gallery .gallery-item[data-type="video"]::after {
  display: none;
}

@media (hover: hover) {
  #our-gallery .gallery-item:hover::before {
    opacity: 1;
  }
  #our-gallery .gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
#our-gallery .gallery-item:focus-visible::before {
  opacity: 1;
}
#our-gallery .gallery-item:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
