/* Portfolio story: first approved wedding gallery template. */

.grp-portfolio-story {
  color: var(--grp-text);
  background: #ffffff;
}

.grp-detail-hero {
  padding: 78px 40px 92px;
  background: var(--grp-bg-off);
}

.grp-detail-hero-inner {
  display: grid;
  max-width: 1160px;
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 78px;
  align-items: center;
}

.grp-detail-label {
  display: block;
  margin: 0 0 22px;
}

.grp-detail-label::after {
  display: block;
  width: 54px;
  height: 1px;
  margin-top: 16px;
  background: var(--grp-gold);
  content: "";
}

.grp-detail-title {
  max-width: 540px;
  margin: 0;
}

.grp-detail-copy {
  max-width: 580px;
  margin: 30px 0 0;
}

.grp-detail-script {
  display: block;
  margin-top: 28px;
  font-family: var(--font-cormorant-g);
  font-size: 25px;
  font-style: italic;
  letter-spacing: 0.05em;
  color: #807326;
}

.grp-detail-hero-image img {
  display: block;
  width: 100%;
  min-height: 560px;
  max-height: 720px;
  object-fit: cover;
}

.grp-gallery-section {
  padding: 100px 40px;
  background: #ffffff;
}

.grp-gallery-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.grp-gallery-inner > .grp-section-title {
  margin: 0;
  text-align: center;
}

.grp-gallery-count {
  display: block;
  margin: 18px 0 54px;
  font-family: var(--font-montserrat);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: #807326;
  text-align: center;
  text-transform: uppercase;
}

.grp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  align-items: start;
}

.grp-gallery-grid figure {
  min-width: 0;
  margin: 0;
}

.grp-gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  cursor: zoom-in;
  background: transparent;
  border: 0;
  appearance: none;
}

.grp-gallery-trigger:focus-visible {
  outline: 2px solid var(--grp-gold);
  outline-offset: 4px;
}

.grp-gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #eeeeee;
}

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

.grp-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  padding: 0;
  margin: 0;
  color: #ffffff;
  background: #0b0b0b;
  border: 0;
}

.grp-lightbox[open] {
  display: grid;
  place-items: center;
}

.grp-lightbox::backdrop {
  background: #0b0b0b;
}

.grp-lightbox__stage {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  padding: 44px 64px;
  place-items: center;
  overflow: hidden;
}

.grp-lightbox__image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 88px);
  object-fit: contain;
  touch-action: none;
  user-select: none;
}

.grp-lightbox__close,
.grp-lightbox__arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  font-family: Arial, sans-serif;
  color: #ffffff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
}

.grp-lightbox__close:focus-visible {
  border-color: var(--grp-gold);
  outline: 0;
}

.grp-lightbox__close {
  top: 18px;
  right: 18px;
  font-size: 30px;
  line-height: 1;
}

.grp-lightbox__arrow {
  top: 50%;
  background: transparent;
  border: 0;
  border-radius: 0;
  transform: translateY(-50%);
}

.grp-lightbox__arrow:focus-visible {
  color: var(--grp-gold);
  outline: 0;
}

.grp-lightbox__arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
}

.grp-lightbox__arrow--previous::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}

.grp-lightbox__arrow--next::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.grp-lightbox__arrow--previous {
  left: 12px;
}

.grp-lightbox__arrow--next {
  right: 12px;
}

.grp-lightbox__counter {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  margin: 0;
  font-family: var(--font-montserrat);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-align: center;
}

.grp-detail-next {
  display: grid;
  min-height: 320px;
  padding: 70px 24px;
  place-items: center;
  color: #ffffff;
  text-align: center;
  background: #1f1f1f;
}

.grp-detail-next h2 {
  max-width: 720px;
  margin: 0 0 26px;
  font-family: var(--font-silk-light);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .grp-detail-hero {
    padding: 62px 40px 72px;
  }

  .grp-detail-hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .grp-detail-hero-image {
    order: -1;
  }

  .grp-detail-hero-image img {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 2;
  }

  .grp-detail-title,
  .grp-detail-copy {
    max-width: 680px;
  }

  .grp-gallery-section {
    padding: 72px 40px;
  }

  .grp-gallery-grid {
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .grp-detail-hero,
  .grp-gallery-section {
    padding-right: 22px;
    padding-left: 22px;
  }

  .grp-detail-hero-inner {
    gap: 34px;
  }

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

  .grp-lightbox__stage {
    padding: 50px 12px;
  }

  .grp-lightbox__image {
    max-height: calc(100dvh - 100px);
  }

  .grp-lightbox__close {
    top: 10px;
    right: 10px;
  }

  .grp-lightbox__arrow--previous {
    left: 6px;
  }

  .grp-lightbox__arrow--next {
    right: 6px;
  }

  .grp-detail-next h2 {
    font-size: 28px;
  }
}
