.gallery-photo figure, .gallery-lightbox .gallery-lightbox-frame {
  position: relative;
}

.gallery-photo-download, .gallery-lightbox .gallery-lightbox-frame {
  display: inline-block;
  zoom: 1;
}

.gallery-album-card a, .gallery-album-cover, .gallery-album-cover picture,
.gallery-album-cover img, .gallery-album-copy, .gallery-photo-frame, .gallery-photo-frame picture,
.gallery-photo-frame img, .gallery-lightbox img, .gallery-lightbox-control svg, .textbox {
  display: block;
}

.gallery-album-copy, .gallery-lightbox, .textbox {
  box-sizing: border-box;
}

.gallery-album-card, .gallery-album-cover, .gallery-photo-frame {
  overflow: hidden;
}

.gallery-carousel-controls button, .gallery-lightbox-control {
  cursor: pointer;
}

.textbox {
  width: 100%;
}

.gallery-lightbox-control {
  -webkit-user-select: none;
  user-select: none;
}

.gallery-layout-carousel, .gallery-carousel-controls, .gallery-lightbox[open], .gallery-lightbox figure, .gallery-lightbox-control {
  display: flex;
}

.gallery-lightbox figure {
  flex-direction: column;
}

.gallery-lightbox[open], .gallery-lightbox figure, .gallery-lightbox-control {
  align-items: center;
}

.gallery-album-list, .gallery-layout-grid {
  display: grid;
}

.textbox {
  padding: 0.85em 1em 0.75em;
  line-height: 1.35em;
  border: 0;
  outline: none;
  border-radius: 0;
  background-color: #eeeeee;
  color: #1A2298;
  font-weight: normal;
  transition: background-color 250ms;
}
.textbox::placeholder {
  color: #888888;
}
.textbox:hover {
  background-color: #f8f8f8;
}
.textbox:focus {
  background-color: #f8f8f8;
  outline: solid 2px #666666;
  outline-offset: 0;
}
.textbox:disabled {
  background-color: #eeeeee;
  color: #888888;
  cursor: not-allowed;
}

textarea.textbox {
  min-height: 8em;
  resize: vertical;
}

select.textbox {
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, #666666 50%), linear-gradient(135deg, #666666 50%, transparent 50%);
  background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.gallery-album-card, .gallery-photo-frame {
  border-radius: 5px;
}

@media screen and (min-width: 1201px) {
  .gallery-albums {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}
@media screen and (min-width: 761px) and (max-width: 1200px) {
  .gallery-albums {
    padding-top: 4.5em;
    padding-bottom: 4.5em;
  }
}
@media screen and (max-width: 760px) {
  .gallery-albums {
    padding-top: 3em;
    padding-bottom: 3em;
  }
}

.gallery-album-group h2 {
  font-size: clamp(1.125rem, 1.35vw, 1.35rem);
}

.gallery-album-copy h2 {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
}

.gallery-album-copy p, .gallery-album-group > p, .textbox {
  font-size: 0.9375rem;
}

.gallery-album-copy small, .gallery-photo figcaption, .gallery-photo-download, .gallery-carousel-controls button, .gallery-lightbox figcaption,
.gallery-lightbox .gallery-lightbox-count {
  font-size: 0.8125rem;
}

.gallery-album-copy p, .gallery-album-group > p {
  font-weight: normal;
  line-height: 1.6em;
}

.gallery-album-copy p, .gallery-album-group > p {
  margin-bottom: 1.25em;
}

.gallery-album-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 3em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-album-card {
  background-color: #000000;
}
.gallery-album-card a {
  color: inherit;
  text-decoration: none;
}
.gallery-album-card:hover img {
  transform: scale(1.025);
}

.gallery-album-cover {
  aspect-ratio: 4/3;
}
.gallery-album-cover picture,
.gallery-album-cover img {
  width: 100%;
  height: 100%;
}
.gallery-album-cover img {
  object-fit: cover;
  object-position: var(--fx) var(--fy);
  transition: transform 250ms ease;
}

.gallery-album-copy {
  padding: 1.5em;
}
.gallery-album-copy h2 {
  margin: 0 0 0.45em;
}
.gallery-album-copy p {
  margin-bottom: 0.8em;
}
@media screen and (max-width: 600px) {
  .gallery-album-list {
    grid-template-columns: 1fr;
  }
}
.gallery-photos,
.gallery-album-group {
  padding-bottom: 6em;
}

.gallery-album-group h2 {
  margin: 0 0 0.4em;
}
.gallery-album-group > p {
  max-width: 760px;
}

.gallery-photo-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-layout-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5em;
}

.gallery-layout-masonry {
  columns: 3 280px;
  column-gap: 1.5em;
}
.gallery-layout-masonry .gallery-photo {
  break-inside: avoid;
  margin-bottom: 1.5em;
}

.gallery-layout-carousel {
  gap: 1.5em;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.gallery-layout-carousel .gallery-photo {
  flex: 0 0 min(76vw, 760px);
  scroll-snap-align: start;
}

.gallery-photo figure {
  margin: 0;
}
.gallery-photo figcaption {
  margin-top: 0.7em;
  line-height: 1.5;
}

.gallery-photo-frame {
  background-color: #dddddd;
}
.gallery-photo-frame picture,
.gallery-photo-frame img {
  width: 100%;
}

a.gallery-photo-frame {
  cursor: zoom-in;
}

.gallery-crop-square {
  aspect-ratio: 1/1;
}

.gallery-crop-four-three {
  aspect-ratio: 4/3;
}

.gallery-crop-sixteen-nine {
  aspect-ratio: 16/9;
}

.gallery-crop-square picture,
.gallery-crop-square img,
.gallery-crop-four-three picture,
.gallery-crop-four-three img,
.gallery-crop-sixteen-nine picture,
.gallery-crop-sixteen-nine img {
  height: 100%;
}
.gallery-crop-square img,
.gallery-crop-four-three img,
.gallery-crop-sixteen-nine img {
  object-fit: cover;
  object-position: var(--fx) var(--fy);
}

.gallery-crop-original img {
  height: auto;
}

.gallery-photo-download {
  margin-top: 0.7em;
}

.gallery-carousel-controls {
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 1.5em;
}
.gallery-carousel-controls button {
  padding: 0.65em 1em;
  border: 1px solid #bbbbbb;
  background-color: transparent;
}
.gallery-carousel-controls button:hover {
  background-color: #eeeeee;
}
.gallery-carousel-controls button:disabled {
  opacity: 0.35;
  cursor: default;
}

html:has(.gallery-lightbox[open]) {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10002;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}
.gallery-lightbox[open] {
  justify-content: center;
}
.gallery-lightbox::backdrop {
  background-color: rgba(0, 0, 0, 0.85);
}
.gallery-lightbox figure {
  margin: 0;
}
.gallery-lightbox img {
  width: auto;
  height: auto;
  max-width: 50vw;
  max-height: 50dvh;
  object-fit: contain;
}
.gallery-lightbox figcaption,
.gallery-lightbox .gallery-lightbox-count {
  max-width: 36em;
  line-height: 1.45;
  text-align: center;
}
.gallery-lightbox figcaption {
  margin-top: 0.75rem;
}
.gallery-lightbox .gallery-lightbox-count {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.62);
}
@media screen and (max-width: 700px) {
  .gallery-lightbox img {
    max-width: calc(100vw - 4.5rem);
    max-height: 62dvh;
  }
}

.gallery-lightbox-control {
  position: absolute;
  z-index: 2;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  appearance: none;
  background-color: rgba(0, 0, 0, 0.55);
  color: #ffffff;
}
.gallery-lightbox-control svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gallery-lightbox-control:hover, .gallery-lightbox-control:focus-visible {
  background-color: rgba(0, 0, 0, 0.8);
}
.gallery-lightbox-control:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.gallery-lightbox-close {
  top: 0.5rem;
  right: 0.5rem;
}

.gallery-lightbox-prev {
  top: 50%;
  left: 0.5rem;
  transform: translateY(-50%);
}

.gallery-lightbox-next {
  top: 50%;
  right: 0.5rem;
  transform: translateY(-50%);
}

@media screen and (max-width: 700px) {
  .gallery-layout-carousel .gallery-photo {
    flex-basis: 88vw;
  }
}
