.photo-gallery-component {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 3rem 0 !important;
  padding: 0;
  background: #ffffff;
  color: #514747;
}
.photo-gallery-component * {
  box-sizing: border-box;
}
.photo-gallery-component div,
.photo-gallery-component figure {
  margin-bottom: 0 !important;
}
.photo-gallery-component__inner {
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.photo-gallery-component__header {
  margin-bottom: 2rem;
}
.photo-gallery-component__title {
  margin: 0 !important;
  color: #251f1f !important;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
}
.photo-gallery-component__grid {
  column-count: 3;
  column-gap: 1.5rem;
}
.photo-gallery-component__grid--enhanced {
  display: flex;
  align-items: start;
  gap: 1.5rem;
  columns: initial;
}
.photo-gallery-component__column {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  gap: 1.5rem;
}
.photo-gallery-component__item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 clamp(0.75rem, 1.25vw, 1.25rem) !important;
  overflow: hidden;
  break-inside: avoid;
  border-radius: 0.875rem;
  background: transparent;
}
.photo-gallery-component__grid--enhanced .photo-gallery-component__item {
  margin: 0 !important;
}
.photo-gallery-component__trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.photo-gallery-component__trigger:focus-visible {
  outline: 3px solid #0b6c3f;
  outline-offset: -4px;
}
.photo-gallery-component__trigger img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.photo-gallery-component__trigger:hover img {
  filter: brightness(0.88);
  transform: scale(1.015);
}
.photo-gallery-component__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2.75rem 1rem 0.9rem;
  color: #ffffff;
  font-size: 0.9375rem;
  line-height: 1.5;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
  transform: translateY(0.35rem);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.photo-gallery-component__item:hover .photo-gallery-component__caption, .photo-gallery-component__item:focus-within .photo-gallery-component__caption {
  opacity: 1;
  transform: translateY(0);
}
.photo-gallery-component .image-viewer__image {
  width: auto !important;
  max-width: 94vw !important;
  height: auto !important;
  max-height: 90dvh;
}

@media (max-width: 768px) {
  .photo-gallery-component__grid {
    column-count: 2;
    column-gap: 1rem;
  }
  .photo-gallery-component__grid--enhanced, .photo-gallery-component__column {
    gap: 1rem;
  }
  .photo-gallery-component__item {
    margin-bottom: 0.75rem !important;
  }
}
@media (hover: none) {
  .photo-gallery-component__caption {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 480px) {
  .photo-gallery-component__grid {
    column-count: 1;
  }
  .photo-gallery-component__grid--enhanced, .photo-gallery-component__column {
    gap: 0.75rem;
  }
}
