.gd-gallery.gallery-collage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #102e26;
  isolation: isolate;
}

.gd-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 500px;
  overflow: hidden;
  background: #183b31;
}

.gd-gallery .gd-main {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  border: 0;
  background: transparent;
}

.gd-gallery .gd-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gd-gallery button:hover img { transform: none; }

.gd-stage::after {
  position: absolute;
  inset: 50% 0 0;
  z-index: 1;
  background: linear-gradient(transparent, rgba(5, 25, 19, .84));
  content: '';
  pointer-events: none;
}

.gd-stage-top,
.gd-stage-bottom {
  position: absolute;
  z-index: 2;
  right: 1.35rem;
  left: 1.35rem;
  display: flex;
  color: #fff;
  pointer-events: none;
}

.gd-stage-top {
  top: 1.35rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gd-photo-tag,
.gd-counter {
  padding: .52rem .76rem;
  background: rgba(9, 35, 27, .76);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .035em;
}

.gd-stage-bottom {
  bottom: 1.45rem;
  flex-direction: column;
  align-items: flex-start;
  gap: .28rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

.gd-photo-group {
  color: #d3eac0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.gd-caption {
  font-family: Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 400;
  line-height: 1.05;
}

.gd-expand { font-size: .76rem; opacity: .85; }

.gd-gallery .gd-arrow,
.gd-lightbox-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0 0 .22rem;
  color: #fff;
  background: rgba(9, 35, 27, .77);
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .18);
  font-family: Georgia, serif;
  font-size: 2.25rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background .18s ease, scale .18s ease;
}

.gd-gallery .gd-arrow:hover,
.gd-lightbox-arrow:hover { background: rgba(9, 35, 27, .96); scale: 1.08; }
.gd-arrow-prev,
.gd-lightbox-prev { left: 1rem; }
.gd-arrow-next,
.gd-lightbox-next { right: 1rem; }

.gd-gallery button:focus-visible,
.gd-lightbox button:focus-visible {
  outline: 3px solid #d3eac0;
  outline-offset: 3px;
}

.gd-rail {
  display: flex;
  flex: 0 0 auto;
  gap: .52rem;
  overflow-x: auto;
  padding: .7rem;
  scrollbar-color: #799489 #102e26;
  scrollbar-width: thin;
}

.gd-gallery .gd-thumb {
  position: relative;
  display: block;
  flex: 0 0 98px;
  height: 76px;
  padding: 0;
  overflow: hidden;
  background: #285044;
  border: 2px solid transparent;
  border-radius: .35rem;
  opacity: .72;
  transition: opacity .18s ease, border-color .18s ease;
}

.gd-gallery .gd-thumb:hover,
.gd-gallery .gd-thumb[aria-pressed='true'] { opacity: 1; }
.gd-gallery .gd-thumb[aria-pressed='true'] { border-color: #d3eac0; }
.gd-gallery .gd-thumb-image { width: 100%; height: 100%; object-fit: cover; }

.gd-thumb-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: .45rem .28rem .22rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(4, 20, 15, .82));
  font-size: .64rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
}

.gd-lightbox {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #081811;
}

.gd-lightbox::backdrop { background: rgba(4, 20, 15, .9); }

.gd-lightbox-header {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  padding: .55rem 1.2rem;
  background: rgba(4, 20, 15, .72);
}

.gd-lightbox-title { font-size: .9rem; font-weight: 700; }
.gd-lightbox-count { margin-left: auto; font-size: .8rem; opacity: .8; }

.gd-lightbox-close {
  width: 2.7rem;
  height: 2.7rem;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}

.gd-lightbox-body {
  position: absolute;
  inset: 4rem 0 3.8rem;
  display: grid;
  place-items: center;
}

.gd-lightbox-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gd-lightbox-caption {
  position: absolute;
  right: 1rem;
  bottom: .8rem;
  left: 1rem;
  margin: 0;
  font-size: .86rem;
  text-align: center;
}

@media (min-width: 1250px) and (min-height: 740px) {
  .gd-stage, .gd-gallery .gd-main { min-height: 0; }
}

@media (max-width: 720px) {
  .gd-stage { min-height: 355px; }
  .gd-stage-top,
  .gd-stage-bottom { right: .8rem; left: .8rem; }
  .gd-stage-top { top: .8rem; }
  .gd-stage-bottom { bottom: .9rem; }
  .gd-photo-tag { font-size: .62rem; }
  .gd-expand { display: none; }
  .gd-gallery .gd-arrow,
  .gd-lightbox-arrow { width: 2.75rem; height: 2.75rem; }
  .gd-arrow-prev,
  .gd-lightbox-prev { left: .55rem; }
  .gd-arrow-next,
  .gd-lightbox-next { right: .55rem; }
  .gd-gallery .gd-thumb { flex-basis: 86px; height: 68px; }
  .gd-lightbox-header { padding-inline: .8rem; }
  .gd-lightbox-body { inset: 4rem 0 3.4rem; }
}
