.gallery_page .site_header {
  background: #202020;
}
/* No GSAP on this page, so the mobile menu's clip-path reveal is done with a CSS transition */
@media only screen and (max-width: 1100px) {
  .gallery_page .site_nav {
    transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.18, 1), visibility 0s linear 0.6s;
  }
  .gallery_page .site_header.nav_open .site_nav {
    visibility: visible;
    pointer-events: auto;
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.18, 1), visibility 0s;
  }
}
.gallery_content {
  padding: 180px 0 75px;
}
.gallery_content .gallery_title {
  padding: 0;
  margin-bottom: 30px;
  font-size: 42px;
}
.gallery_albums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
}
.gallery_album {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  color: #000;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.gallery_album_cover {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e4e4e4;
}
.gallery_album_cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.3s ease;
}
.gallery_album:hover .gallery_album_cover img {
  transform: scale(1.025);
}
.gallery_album_details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
}
.gallery_album_title {
  font-size: 22px;
  line-height: 1.3;
  font-family: semi_font;
}
.gallery_album_count {
  flex-shrink: 0;
  color: #666;
  font-size: 13px;
}
.gallery_album_count i {
  margin-left: 12px;
  color: #ed1e26;
}
.gallery_album:focus-visible,
.gallery_icon_button:focus-visible,
.gallery_retry:focus-visible {
  outline: 2px solid #ed1e26;
  outline-offset: 3px;
}
.gallery_modal {
  box-sizing: border-box;
  width: 1200px;
  max-width: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #151515;
  color: #fff;
}
.gallery_modal::backdrop {
  background: rgba(0, 0, 0, 0.8);
}
.gallery_modal_header,
.gallery_modal_footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 18px;
  box-sizing: border-box;
}
.gallery_modal_header h2 {
  padding: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
}
.gallery_icon_button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  padding: 0;
  border: 1px solid #555;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.gallery_icon_button:disabled {
  opacity: 0.3;
  cursor: default;
}
.gallery_viewer {
  position: relative;
  height: min(65vw, calc(100dvh - 180px), 680px);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-y;
}
.gallery_photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery_photo[hidden],
.gallery_retry[hidden] {
  display: none;
}
.gallery_status {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
}
.gallery_retry {
  pointer-events: auto;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 1024px) {
  .gallery_albums {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .gallery_content {
    padding-top: 130px;
    padding-bottom: 45px;
  }
  .gallery_content .gallery_title {
    font-size: 32px;
  }
  .gallery_albums {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .gallery_album_details {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
  }
  .gallery_album_title {
    font-size: 20px;
  }
  .gallery_viewer {
    height: calc(100dvh - 180px);
  }
  .gallery_modal_header h2 {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery_album_cover img {
    transition: none;
  }
}
