.gallery-page,
.gallery-page *,
.gallery-page *::before,
.gallery-page *::after {
  box-sizing: border-box;
}

.gallery-page {
  min-height: 100vh;
  color: #2e332e;
  background:
    radial-gradient(circle at 9% 25%, rgba(223, 233, 216, .38), transparent 30%),
    radial-gradient(circle at 90% 14%, rgba(246, 224, 213, .32), transparent 28%),
    #fcfbf8;
}

.gallery-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.gallery-page__breadcrumbs {
  width: min(1180px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

.gallery-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 9vw, 118px) 0 clamp(48px, 6vw, 74px);
  text-align: center;
}

.gallery-hero::before,
.gallery-hero::after {
  position: absolute;
  width: clamp(150px, 21vw, 290px);
  height: clamp(150px, 21vw, 290px);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.gallery-hero::before {
  top: 16px;
  left: -70px;
  background: radial-gradient(circle, rgba(203, 222, 198, .35), rgba(203, 222, 198, 0) 70%);
}

.gallery-hero::after {
  right: -72px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(244, 211, 195, .32), rgba(244, 211, 195, 0) 70%);
}

.gallery-hero__inner {
  position: relative;
  z-index: 1;
}

.gallery-hero__eyebrow {
  margin: 0 0 16px;
  color: #758e70;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .76rem;
  letter-spacing: .28em;
}

.gallery-hero__title {
  margin: 0;
  color: #2b302c;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  font-weight: 500;
  letter-spacing: .075em;
  line-height: 1.45;
}

.gallery-hero__line {
  display: block;
  width: 92px;
  height: 1px;
  margin: 24px auto 26px;
  background: #8ca184;
}

.gallery-hero__lead,
.gallery-hero__description {
  margin: 0;
  color: #4b514b;
  font-size: clamp(.92rem, 1.4vw, 1.04rem);
  letter-spacing: .055em;
  line-height: 2;
}

.gallery-hero__description {
  margin-top: 10px;
  color: #676b65;
}

.gallery-content {
  padding: 0 0 clamp(90px, 10vw, 138px);
}

.gallery-grid {
  min-height: 180px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(113, 124, 101, .13);
  border-radius: 26px;
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 18px 48px rgba(79, 82, 67, .055);
}

.gallery-grid .mosa-mediaViewer-root {
  width: 100%;
}

.gallery-grid .mosa-mediaViewer-entry {
  overflow: hidden;
  border-radius: 12px;
  background: #f1eee7;
  box-shadow: 0 8px 22px rgba(62, 66, 53, .07);
}

.gallery-grid .mosa-mediaViewer-caption {
  padding: 11px 10px 13px;
  color: #565d55;
  font-size: .78rem;
  letter-spacing: .035em;
  line-height: 1.7;
}

.gallery-grid img {
  display: block;
  max-width: 100%;
}

.gallery-loading,
.gallery-empty,
.gallery-error {
  margin: 0;
  padding: 62px 20px;
  color: #697067;
  font-size: .92rem;
  letter-spacing: .04em;
  text-align: center;
}

.gallery-error {
  color: #795f58;
}

@media (max-width: 767px) {
  .gallery-container,
  .gallery-page__breadcrumbs {
    width: min(100% - 32px, 1180px);
  }

  .gallery-hero {
    padding: 58px 0 42px;
  }

  .gallery-hero__title {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
  }

  .gallery-hero__lead br,
  .gallery-hero__description br {
    display: none;
  }

  .gallery-grid {
    min-height: 130px;
    padding: 12px;
    border-radius: 18px;
  }

  .gallery-grid .mosa-mediaViewer-masonry [data-media-viewer-gallery] {
    display: grid !important;
    height: auto !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-grid .mosa-mediaViewer-masonry .mosa-mediaViewer-entry {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  .gallery-grid .mosa-mediaViewer-masonry .mosa-mediaViewer-photo {
    overflow: hidden;
    aspect-ratio: 4 / 5;
  }

  .gallery-grid .mosa-mediaViewer-masonry .mosa-mediaViewer-photo,
  .gallery-grid .mosa-mediaViewer-masonry .photoBase,
  .gallery-grid .mosa-mediaViewer-masonry .photoBox,
  .gallery-grid .mosa-mediaViewer-masonry .photoFigure {
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
  }

  .gallery-grid .mosa-mediaViewer-masonry img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
  }
}

@media (max-width: 390px) {
  .gallery-grid {
    padding: 10px;
  }

  .gallery-grid .mosa-mediaViewer-masonry [data-media-viewer-gallery] {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
