.org-site .org-content.media-gallery-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px 72px;
  color: #293129;
  font-family: var(--sans, Manrope, Arial, sans-serif);
}

.org-site .org-content.media-gallery-page .gallery-intro {
  max-width: none;
  padding: 26px 0 30px;
}

.org-site .media-gallery-page .gallery-intro h1 {
  max-width: none;
  margin: 10px 0 22px;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.5rem, 4.5vw, 4rem) !important;
  line-height: 1.06 !important;
  text-wrap: balance;
}

.org-site .media-gallery-page .gallery-lead {
  max-width: 660px;
  margin: 0;
  color: #586156;
  font-size: 17px;
  line-height: 1.7;
}

.gallery-theme-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.gallery-theme-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 10px;
  border: 1px solid #d7c8ad;
  border-radius: 999px;
  color: #72572c;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.gallery-theme-nav a span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d7c8ad;
  border-radius: 50%;
  font-size: 11px;
}

.gallery-theme-nav a:hover {
  border-color: #987335;
  background: #f6f1e6;
}

.org-site .org-content.media-gallery-page .gallery-section {
  margin: 0;
  padding: 48px 0 52px !important;
  border-top: 1px solid #ded9cb;
  scroll-margin-top: 30px;
}

.gallery-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.gallery-section-head > div { max-width: 690px; }

.gallery-section-number {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border: 1px solid #c3a46b;
  border-radius: 50%;
  color: #72572c;
  font-size: 13px;
}

.org-site .media-gallery-page .gallery-section-head h2 {
  margin: 0 0 10px;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.25rem, 4vw, 3.5rem) !important;
  line-height: 1.1 !important;
  text-wrap: balance;
}

.org-site .media-gallery-page .gallery-section-head p {
  margin: 0;
  color: #586156;
  font-size: 16px;
  line-height: 1.65;
}

.gallery-service-link {
  flex-shrink: 0;
  display: inline-block;
  padding: 9px 0;
  border-bottom: 1px solid #b99a62;
  color: #72572c;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-style: italic;
  font-size: 23px;
  line-height: 1.5;
  text-decoration: none;
}

.gallery-service-link span { margin-left: 8px; }
.gallery-service-link:hover { border-bottom-color: #72572c; }

.gallery-photo-grid {
  columns: 3;
  column-gap: 20px;
}
.org-site .media-gallery-page .gallery-photo-grid { display: block; }

.org-site .media-gallery-page .gallery-photo {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 22px;
  break-inside: avoid;
  vertical-align: top;
}

.gallery-photo a {
  display: block;
  overflow: hidden;
  border: 1px solid #ded9cb;
  border-radius: 16px;
  background: #f4f1e9;
}

.org-site .media-gallery-page .gallery-photo img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none;
  margin: 0;
  object-fit: contain !important;
}

.org-site .media-gallery-page .gallery-photo-caption {
  padding: 0 3px;
  margin-top: 10px;
  color: #586156;
  font-size: 13px;
  line-height: 1.5;
}

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

.gallery-films {
  margin-top: 10px;
  padding: 24px;
  border: 1px solid #e4ddcf;
  border-radius: 24px;
  background: #f7f4ed;
}

.org-site .media-gallery-page .gallery-films h3 {
  margin: 0 0 18px;
  color: #72572c;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-style: italic;
  font-size: 1.9rem !important;
  font-weight: 500;
  line-height: 1.2 !important;
}

.gallery-film-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.org-site .media-gallery-page .gallery-film-card { margin: 0; }

.gallery-film {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 160px;
  padding: 12px;
  border: 1px solid #ded9cb;
  border-radius: 16px;
  background: #fffefa;
  color: #293129;
  font-family: var(--sans, Manrope, Arial, sans-serif);
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.gallery-film:hover { border-color: #ad8e55; background: #fffdf7; }

.gallery-film-cover {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  aspect-ratio: var(--film-ratio, 512/910);
  border-radius: 10px;
  background: #20251f;
}

.org-site .media-gallery-page .gallery-film-cover img {
  display: block;
  width: 100%;
  height: 100% !important;
  max-height: none;
  object-fit: contain !important;
}

.gallery-film-play {
  position: absolute;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding-left: 2px;
  border: 1px solid #fffefa;
  border-radius: 50%;
  background: #fffefae8;
  color: #72572c;
  font-size: 14px;
}

.gallery-film-copy { display: grid; justify-items: start; gap: 7px; }
.gallery-film-title { font-size: 15px; line-height: 1.5; font-weight: 600; }
.gallery-film-duration { color: #586156; font-size: 12px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.gallery-film-action { margin-top: 5px; color: #72572c; font-size: 12px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }

.gallery-theme-nav a:focus-visible,
.gallery-service-link:focus-visible,
.gallery-photo a:focus-visible,
.gallery-film:focus-visible {
  outline: 3px solid #987335;
  outline-offset: 4px;
}

.lt-gallery-video-dialog {
  width: fit-content;
  max-width: min(94vw, 800px);
  max-height: 94vh;
  max-height: 94dvh;
  margin: auto;
  padding: 52px 20px 18px;
  overflow: auto;
  border: 1px solid #d7c8ad;
  border-radius: 18px;
  background: #202a24;
  color: #fffefa;
}

.lt-gallery-video-dialog::backdrop { background: #142019df; }

.lt-gallery-video-dialog h2 {
  max-width: 600px;
  margin: 0 0 14px;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-style: italic;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
}
.org-site .lt-gallery-video-dialog h2 { color: #fffefa; }

.lt-gallery-video-close {
  position: absolute;
  top: 6px;
  right: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fffefa;
  font: 32px/1 var(--sans, Manrope, Arial, sans-serif);
  cursor: pointer;
}

.lt-gallery-video-player {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(88vh - 134px);
  max-height: calc(88dvh - 134px);
  margin: 0 auto;
  background: #10140f;
  object-fit: contain;
}

.lt-gallery-video-fallback {
  display: block;
  margin-top: 14px;
  color: #f1e2c4;
  font: 12px/1.6 var(--sans, Manrope, Arial, sans-serif);
  text-underline-offset: 4px;
}

.lt-gallery-video-close:focus-visible,
.lt-gallery-video-fallback:focus-visible { outline: 2px solid #f1e2c4; outline-offset: 2px; }

@media (max-width: 760px) {
  .org-site .org-content.media-gallery-page { padding: 0 20px 42px; }
  .org-site .org-content.media-gallery-page .gallery-intro { padding: 26px 0 30px !important; }
  .org-site .org-content.media-gallery-page .gallery-section { padding: 32px 0 38px !important; }
  .gallery-theme-nav { gap: 8px; margin-top: 24px; }
  .gallery-theme-nav a { padding: 8px 12px 8px 8px; gap: 8px; font-size: 12px; }
  .gallery-theme-nav a span { width: 26px; height: 26px; font-size: 10px; }
  .gallery-section-head { display: block; margin-bottom: 22px; }
  .gallery-section-number { width: 34px; height: 34px; font-size: 11px; margin-bottom: 10px; }
  .gallery-service-link { margin-top: 14px; }
  .gallery-photo-grid { columns: 2; column-gap: 14px; }
  .org-site .media-gallery-page .gallery-photo { margin-bottom: 18px; }
  .org-site .media-gallery-page .gallery-photo-caption { font-size: 12px; margin-top: 8px; }
  .gallery-photo a { border-radius: 12px; }
  .gallery-films { margin-top: 2px; padding: 18px; border-radius: 18px; }
  .gallery-film-grid { grid-template-columns: 1fr; gap: 12px; }
  .gallery-film { grid-template-columns: 64px minmax(0, 1fr); min-height: 135px; gap: 14px; }
  .gallery-film-title { font-size: 14px; }
  .gallery-film-play { width: 34px; height: 34px; }
  .lt-gallery-video-dialog { padding: 50px 12px 16px; }
}

@media (max-width: 350px) {
  .org-site .org-content.media-gallery-page { padding-left: 16px; padding-right: 16px; }
  .gallery-photo-grid { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-theme-nav a, .gallery-film { transition: none; }
}
