.resortGallery_gallery {
  --gallery-ink: #102d31;
  --gallery-paper: #f4f0e8;
  --gallery-bronze: #b18b63;
  color: var(--gallery-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.resortGallery_filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.resortGallery_filterButton {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.125rem;
  min-height: 46px;
  padding: 0.625rem 1rem;
  border: 1px solid #bac5bb;
  border-radius: 0;
  background: transparent;
  color: var(--gallery-ink);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.resortGallery_filterButton:hover {
  border-color: var(--gallery-bronze);
}

.resortGallery_filterButton[aria-pressed="true"] {
  border-color: var(--gallery-ink);
  background: var(--gallery-ink);
  color: var(--gallery-paper);
}

.resortGallery_filterCount {
  font-variant-numeric: tabular-nums;
}

.resortGallery_summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.375rem 1.5rem;
  margin: 1.25rem 0 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #c9d0c6;
  color: #4b625e;
  font-size: 0.875rem;
}

.resortGallery_summary p {
  margin: 0;
}

.resortGallery_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.resortGallery_gridItem {
  min-width: 0;
}

.resortGallery_photoButton {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}

.resortGallery_thumbnail {
  display: block;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: #d3d8ce;
}

.resortGallery_photoImage {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resortGallery_photoCaption {
  display: block;
  margin-top: 0.875rem;
  font-size: 1rem;
  line-height: 1.5;
}

.resortGallery_viewLabel {
  display: block;
  margin-top: 0.375rem;
  color: #4b625e;
  font-size: 0.875rem;
  line-height: 1.5;
}

.resortGallery_photoButton:hover .resortGallery_photoCaption {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

.resortGallery_expandControl {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.resortGallery_expandButton {
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--gallery-ink);
  border-radius: 0;
  background: transparent;
  color: var(--gallery-ink);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.resortGallery_expandButton:hover {
  background: var(--gallery-ink);
  color: var(--gallery-paper);
}

.resortGallery_gallery .resortGallery_filterButton:focus-visible,
.resortGallery_gallery .resortGallery_photoButton:focus-visible,
.resortGallery_gallery .resortGallery_expandButton:focus-visible {
  outline: 3px solid var(--gallery-ink);
  outline-offset: 5px;
}

.resortGallery_dialog {
  width: min(1180px, calc(100vw - 3rem));
  max-width: none;
  max-height: calc(100dvh - 3rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #506661;
  border-radius: 0;
  background: var(--gallery-ink);
  color: var(--gallery-paper);
}

.resortGallery_dialog[open] {
  display: flex;
  flex-direction: column;
}

.resortGallery_dialog::backdrop {
  background: rgb(5 20 22 / 90%);
}

.resortGallery_dialogHeader {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem 1.25rem;
  border-bottom: 1px solid #506661;
}

.resortGallery_viewerTitle {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.resortGallery_dialogButton {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid #7e9186;
  border-radius: 0;
  background: transparent;
  color: var(--gallery-paper);
  font: inherit;
  font-size: 0.875rem;
  line-height: 1.4;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.resortGallery_dialogButton:hover:not(:disabled) {
  background: var(--gallery-paper);
  color: var(--gallery-ink);
}

.resortGallery_dialogButton:disabled {
  opacity: 0.55;
  cursor: default;
}

.resortGallery_dialog .resortGallery_dialogButton:focus-visible {
  outline: 3px solid var(--gallery-paper);
  outline-offset: 4px;
}

.resortGallery_dialogFigure {
  min-height: 0;
  margin: 0;
}

.resortGallery_dialogImage {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100dvh - 16rem);
  background: #0a2428;
  object-fit: contain;
}

.resortGallery_dialog .resortGallery_dialogCaption {
  margin: 0;
  padding: 1rem 1.25rem 0.5rem;
  color: var(--gallery-paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 400;
  line-height: 1.3;
}

.resortGallery_dialogNavigation {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem 1rem;
}

.resortGallery_dialogCounter {
  margin: 0;
  color: #e5e8df;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.resortGallery_srOnly {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 999px) {
  .resortGallery_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.25rem;
  }
}

@media (max-width: 599px) {
  .resortGallery_filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resortGallery_filterButton {
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
  }

  .resortGallery_summary {
    margin-bottom: 1.5rem;
  }

  .resortGallery_grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .resortGallery_expandControl {
    margin-top: 2rem;
  }

  .resortGallery_expandButton {
    width: 100%;
  }

  .resortGallery_dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .resortGallery_dialogHeader {
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
  }

  .resortGallery_viewerTitle {
    max-width: 18ch;
    letter-spacing: 0;
  }

  .resortGallery_dialogImage {
    max-height: calc(100dvh - 14rem);
  }

  .resortGallery_dialog .resortGallery_dialogCaption {
    padding: 1rem 0.75rem 0.5rem;
  }

  .resortGallery_dialogNavigation {
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .resortGallery_dialogButton {
    padding: 0.5rem 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resortGallery_filterButton,
  .resortGallery_expandButton,
  .resortGallery_dialogButton {
    transition: none;
  }

  .resortGallery_gallery,
  .resortGallery_dialog {
    scroll-behavior: auto;
  }
}
