.gallery-title-section {
  position: relative;
  width: 100%;
  padding: 168px 0 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: var(--white);
}

.gallery-title-background-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.gallery-title-background-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.gallery-title-section .gallery-page-container {
  position: relative;
  z-index: 1;
}

.gallery-page-section {
  width: 100%;
  padding: 0 0 120px;
  background: var(--white);
}

.gallery-page-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.gallery-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.gallery-breadcrumbs a,
.gallery-breadcrumbs span {
  color: var(--primary-brown);
  font-size: 14px;
  font-weight: var(--light);
  line-height: 1;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.gallery-breadcrumbs a:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gallery-breadcrumbs img {
  width: 12px;
  height: 12px;
  filter: var(--filter-primary-brown);
}

.gallery-page-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
  text-align: center;
}

.gallery-page-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gallery-page-heading h1 {
  color: var(--primary-brown);
  font-size: 48px;
  font-style: italic;
  font-weight: var(--medium);
  line-height: 1;
}

.gallery-page-divider {
  width: 340px;
  height: 26px;
}

.gallery-page-description {
  width: 100%;
  max-width: 840px;
  margin-top: 28px;
  color: #46393c;
  font-size: 18px;
  font-weight: var(--light);
  line-height: 1.4;
  letter-spacing: 0.9px;
  overflow-wrap: anywhere;
}

.gallery-tabs {
  display: none;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
  margin-top: 88px;
}

.gallery-tab {
  position: relative;
  padding-bottom: 9px;
  color: var(---grey-55, #8c8c8c);
  font-size: 18px;
  font-weight: var(--light);
  line-height: 1;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 180ms ease;
}

.gallery-tab::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--primary-gold-02);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.gallery-tab:is(:hover, :focus-visible),
.gallery-tab.is-active {
  color: var(--primary-brown);
}

.gallery-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.gallery-tab:focus-visible,
.gallery-item:focus-visible,
.gallery-lightbox button:focus-visible {
  outline: 1px solid var(--primary-gold-02);
  outline-offset: 4px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: 18.1713fr 18.1713fr 27.3148fr 18.1713fr 18.1713fr;
  gap: 22px;
  width: 100%;
  aspect-ratio: 1280 / 1816;
  margin-top: 22px;
}

.gallery-grid-wrapper>*:first-child {
  margin-top: 0;
}

.gallery-item {
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background: var(--neutral-02);
}

.gallery-item:nth-child(1) {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
}

.gallery-item:nth-child(2) {
  grid-column: 5 / 7;
  grid-row: 1;
}

.gallery-item:nth-child(3) {
  grid-column: 5 / 7;
  grid-row: 2;
}

.gallery-item:nth-child(4) {
  grid-column: 1 / 4;
  grid-row: 3;
}

.gallery-item:nth-child(5) {
  grid-column: 4 / 7;
  grid-row: 3;
}

.gallery-item:nth-child(6) {
  grid-column: 1 / 3;
  grid-row: 4;
}

.gallery-item:nth-child(7) {
  grid-column: 1 / 3;
  grid-row: 5;
}

.gallery-item:nth-child(8) {
  grid-column: 3 / 7;
  grid-row: 4 / 6;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item:is(:hover, :focus-visible) img {
  transform: scale(1.025);
}

.gallery-item[hidden] {
  display: none;
}

body.gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--white);
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(900px, calc(100vw - 320px));
  height: min(602px, calc(100vh - 128px));
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.gallery-lightbox-close,
.gallery-lightbox-control {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.gallery-lightbox-close {
  top: 14px;
  right: 30px;
}

.gallery-lightbox-close img,
.gallery-lightbox-control img {
  width: 28px;
  height: 28px;
  max-width: none;
  filter: var(--filter-primary-brown);
}

.gallery-lightbox-control {
  top: 50%;
  transform: translateY(-50%);
}

.gallery-lightbox-previous {
  left: 30px;
}

.gallery-lightbox-previous img {
  transform: rotate(180deg);
}

.gallery-lightbox-next {
  right: 30px;
}

.gallery-lightbox-control:disabled {
  cursor: default;
}

.gallery-lightbox-control:disabled img {
  opacity: 0.42;
  filter: var(--filter-neutral-10);
}

.gallery-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1320px) {

  .gallery-title-section,
  .gallery-page-section {
    padding-right: 0;
    padding-left: 0;
  }

  .gallery-page-container {
    max-width: 1000px;
  }
}

@media (max-width: 1080px) {

  .gallery-title-section,
  .gallery-page-section {
    padding-right: 48px;
    padding-left: 48px;
  }

  .gallery-page-container {
    max-width: 100%;
  }

  .gallery-grid {
    gap: 16px;
  }

  .gallery-lightbox-image {
    width: min(760px, calc(100vw - 224px));
  }
}

@media (max-width: 970px) {
  .gallery-title-section {
    padding: 136px 32px 32px 32px;
  }

  .gallery-page-section {
    padding: 0 32px 88px;
  }

  .gallery-page-heading h1 {
    font-size: 42px;
  }

  .gallery-page-description {
    max-width: 680px;
  }

  .gallery-description-break {
    display: none;
  }

  .gallery-tabs {
    justify-content: flex-start;
    gap: 28px;
    margin-top: 64px;
    padding-bottom: 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .gallery-tabs::-webkit-scrollbar {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 16px;
    aspect-ratio: auto;
    margin-top: 16px;
  }

  .gallery-grid .gallery-item {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .gallery-lightbox-image {
    top: 50%;
    width: calc(100vw - 128px);
    height: calc(100vh - 128px);
    transform: translate(-50%, -50%);
  }

  .gallery-lightbox-close {
    top: 12px;
    right: 12px;
  }

  .gallery-lightbox-previous {
    left: 8px;
  }

  .gallery-lightbox-next {
    right: 8px;
  }
}

@media (max-width: 700px) {
  .gallery-title-section {
    padding: 128px 24px 32px 24px;
  }

  .gallery-page-section {
    padding: 0 24px 96px;
    background: var(--off-white-95, #f2f2f2);
  }

  .gallery-page-heading h1 {
    font-size: 40px;
  }

  .gallery-page-divider {
    width: min(240px, 100%);
    height: 18px;
  }

  .gallery-page-description {
    font-size: 16px;
    letter-spacing: 0.8px;
  }

  .gallery-page-heading {
    gap: 8px;
  }

  .gallery-page-intro {
    margin-top: 20px;
  }

  .gallery-page-description {
    margin-top: 24px;
  }

  .gallery-tabs {
    gap: 20px;
    margin-top: 48px;
  }

  .gallery-tab {
    font-size: 16px;
    letter-spacing: 0.8px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 16px;
    aspect-ratio: auto;
    margin-top: 16px;
  }

  .gallery-grid .gallery-item {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1 / 1;
  }

  .gallery-grid .gallery-item:nth-child(1),
  .gallery-grid .gallery-item:nth-child(4),
  .gallery-grid .gallery-item:nth-child(5),
  .gallery-grid .gallery-item:nth-child(8) {
    grid-column: 1 / -1;
    aspect-ratio: 358 / 320;
  }

  .gallery-lightbox-image {
    width: calc(100vw - 48px);
    height: calc(100vh - 144px);
  }

  .gallery-lightbox-control {
    top: auto;
    bottom: 24px;
    transform: none;
  }

  .gallery-lightbox-previous {
    left: calc(50% - 56px);
  }

  .gallery-lightbox-next {
    right: calc(50% - 56px);
  }
}

@media (max-width: 500px) {

  .gallery-title-section,
  .gallery-page-section {
    padding-right: 16px;
    padding-left: 16px;
  }

  .gallery-page-container {
    width: 100%;
    max-width: 100%;
  }

  .gallery-breadcrumbs a,
  .gallery-breadcrumbs span {
    font-size: 12px;
    letter-spacing: 0.6px;
  }

  .gallery-lightbox-image {
    width: calc(100vw - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .gallery-item img,
  .gallery-tab,
  .gallery-tab::after {
    transition: none;
  }
}