:root {
 
  --gap: 22px;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-row {
  display: grid;
  gap: var(--gap);
  margin: 4px 0;
}

.photo-row button {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #26343a;
  cursor: zoom-in;
}

.photo-row img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease;
}

.photo-row button[data-image="img/optimized/13.jpg"] img {
  object-position: center 95%;
}

.photo-row button[data-image="img/optimized/26.jpg"] img {
  object-position: center 30%;
}

.photo-row button:hover img,
.photo-row button:focus-visible img {
  transform: scale(1.025);
  filter: brightness(1.07);
}

.photo-row button:focus-visible,
.modal-close:focus-visible,
.tour-banner:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.single button {
  aspect-ratio: 3 / 2;
}

.pair {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8px 0;
}

.pair-even button {
  aspect-ratio: 2 / 2.45;
}

.pair-even button:nth-child(2) {
  transform: translateY(-8px);
}

.pair-wide-left {
  grid-template-columns: 1.35fr 0.85fr;
  align-items: end;
  padding: 12px 0 4px;
}

.pair-wide-left button:first-child {
  aspect-ratio: 3 / 2;
}

.pair-wide-left button:last-child {
  aspect-ratio: 1 / 1.12;
}

.pair-wide-right {
  grid-template-columns: 0.85fr 1.35fr;
  align-items: start;
  padding: 4px 0 12px;
}

.pair-wide-right button:first-child {
  aspect-ratio: 1 / 1.12;
}

.pair-wide-right button:last-child {
  aspect-ratio: 3 / 2;
}

.pair-tall-left {
  grid-template-columns: 0.9fr 1.25fr;
  align-items: center;
  padding: 10px 0;
}

.pair-tall-left button:first-child {
  aspect-ratio: 2 / 2.8;
}

.pair-tall-left button:last-child {
  aspect-ratio: 3 / 2;
}

.trio {
  grid-template-columns: 1fr 1.25fr 0.85fr;
  align-items: stretch;
  gap: 14px;
}

.trio button {
  aspect-ratio: 2 / 2.75;
}

.trio button:nth-child(2) {
  aspect-ratio: auto;
}

.feature-collage {
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 48px 120px 40px 190px;
  gap: 18px;
  padding: 8px 0;
}

.feature-collage button:nth-child(1) {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
}

.feature-collage button:nth-child(2) {
  grid-column: 5 / 8;
  grid-row: 2 / 4;
}

.feature-collage button:nth-child(3) {
  grid-column: 8 / 13;
  grid-row: 1 / 3;
}

.feature-collage button:nth-child(4) {
  grid-column: 1 / 8;
  grid-row: 4;
}

.feature-collage button:nth-child(5) {
  grid-column: 8 / 13;
  grid-row: 3 / 5;
}

.stage-collage {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.05 / 1;
  margin: 8px 0;
}

.stage-collage button:nth-child(1) {
  position: absolute;
  top: 2%;
  left: 0;
  width: 36%;
  height: 23%;
}

.stage-collage button:nth-child(2) {
  position: absolute;
  top: 29%;
  left: 18%;
  width: 36%;
  height: 23%;
}

.stage-collage button:nth-child(3) {
  position: absolute;
  top: 0;
  right: 0;
  width: 41%;
  height: 59%;
}

.stage-collage button:nth-child(4) {
  position: absolute;
  top: 56%;
  left: 0;
  width: 23.5%;
  height: 34%;
}

.stage-collage button:nth-child(5) {
  position: absolute;
  top: 61%;
  left: 29%;
  width: 25%;
  height: 36%;
}

.stage-collage button:nth-child(6) {
  position: absolute;
  top: 75%;
  right: 5%;
  width: 36%;
  height: 23%;
}

.quad-collage {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.08 / 1;
  margin: 8px 0;
}

.quad-collage button:nth-child(1) {
  position: absolute;
  top: 8%;
  left: 0;
  width: 57%;
  height: 40%;
}

.quad-collage button:nth-child(2) {
  position: absolute;
  top: 0;
  right: 7.5%;
  width: 30%;
  height: 48%;
}

.quad-collage button:nth-child(3) {
  position: absolute;
  top: 53%;
  left: 0;
  width: 32%;
  height: 43%;
}

.quad-collage button:nth-child(4) {
  position: absolute;
  top: 54%;
  right: 0;
  width: 64%;
  height: 42%;
}

.trio-stagger {
  grid-template-columns: 0.9fr 1.25fr 0.9fr;
  align-items: center;
}

.trio-stagger button:first-child {
  transform: translateY(7px);
}

.trio-stagger button:last-child {
  transform: translateY(-6px);
}

.trio-stagger button:nth-child(2) {
  aspect-ratio: 3 / 2;
}

.trio-portrait {
  grid-template-columns: 1fr 1fr 1.15fr;
  align-items: end;
  gap: 14px;
}

.trio-portrait button:nth-child(1) {
  aspect-ratio: 2 / 2.65;
}

.trio-portrait button:nth-child(2) {
  aspect-ratio: 2 / 2.95;
}

.trio-portrait button:nth-child(3) {
  aspect-ratio: 2 / 2.55;
}

.portrait-feature button {
  aspect-ratio: 16 / 9;
}

.mosaic {
  grid-template-columns: 1.1fr 0.75fr 0.9fr;
  grid-template-rows: 0.7fr 1fr;
  min-height: 420px;
  align-items: stretch;
}

.mosaic button:first-child {
  grid-row: 1 / 3;
}

.mosaic button:nth-child(2) {
  grid-column: 2 / 4;
  width: 100%;
}

.mosaic button:nth-child(3) {
  grid-column: 2 / 4;
  width: 68%;
  justify-self: end;
}

.gallery-footer {
  padding: 52px 0 48px;
  text-align: center;
  font-size: 19px;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.tour-banner {
  display: block;
  width: 100%;
  margin-top: 32px;
}

.tour-banner img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 54px;
  background: rgba(12, 18, 20, 0.92);
  cursor: zoom-out;
}

.modal[hidden] {
  display: none;
}

.modal-image {
  display: block;
  width: auto;
  max-width: min(92vw, 1500px);
  height: auto;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.42);
  cursor: default;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-drag: none;
}

.modal-close {
  position: fixed;
  z-index: 1;
  top: 22px;
  right: 26px;
  width: 44px;
  height: 44px;
  padding: 0 0 5px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 42px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
}

.modal-navigation {
  position: fixed;
  z-index: 1;
  top: 50%;
  width: 58px;
  height: 82px;
  padding: 0 0 7px;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 58px;
  font-weight: 200;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-navigation:hover {
  background: rgba(0, 0, 0, 0.48);
}

.modal-navigation[hidden] {
  display: none;
}

.modal-previous {
  left: 18px;
}

.modal-next {
  right: 18px;
}

@media (max-width: 896px) {
  :root {
    --gap: 12px;
  }

  main {
    width: 100%;
    padding: 36px 24px 24px;
  }

  .gallery-frame {
    border-width: 5px;
    padding: 0 12px;
  }

  .gallery {
    gap: 8px;
  }

  .gallery-header {
    padding: 38px 0 32px;
  }

  .gallery-title {
    min-width: 0;
    padding: 0;
  }

  .section-number {
    padding: 0;
    font-size: 13px;
    letter-spacing: 0.06em;
  }

  .section-number::before,
  .section-number::after {
    width: 21px;
  }

  .gallery-header h1 {
    margin-top: 1px;
    font-size: 22px;
    letter-spacing: 0.04em;
  }

  .event-details {
    min-width: 0;
    margin-top: 15px;
  }
  .date {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .gallery-header h2 {
    margin-top: 10px;
    font-size: 16px;
    letter-spacing: 0.07em;
  }

  .credit {
    margin-top: 3px !important;
    font-size: 8px;
    letter-spacing: 0.03em;
  }

  .mosaic {
    min-height: 250px;
  }

  .pair {
    padding-block: 6px;
  }

  .pair-even button:nth-child(2) {
    transform: translateY(-4px);
  }

  .trio,
  .trio-portrait {
    gap: 8px;
  }

  .mobile-678 {
    grid-template-columns: 1fr 1.28fr 1fr;
    align-items: stretch;
    gap: 10px;
  }

  .mobile-678 button:nth-child(1),
  .mobile-678 button:nth-child(2),
  .mobile-678 button:nth-child(3) {
    grid-column: auto;
    width: 100%;
    height: clamp(150px, 42vw, 300px);
    margin: 0;
    aspect-ratio: auto;
    justify-self: stretch;
  }

  .feature-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 10px;
    padding: 4px 0;
  }

  .feature-collage button:nth-child(1),
  .feature-collage button:nth-child(2) {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    aspect-ratio: 2 / 3;
    justify-self: stretch;
  }

  .feature-collage button:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: auto;
    width: 100%;
    aspect-ratio: 3 / 2;
    justify-self: stretch;
  }

  .feature-collage button:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
    aspect-ratio: 2 / 3;
    justify-self: stretch;
  }

  .feature-collage button:nth-child(5) {
    grid-column: 2;
    grid-row: auto;
    width: 100%;
    aspect-ratio: 2 / 3;
    justify-self: stretch;
  }

  .stage-collage {
    position: static;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    aspect-ratio: auto;
    column-gap: 10px;
    row-gap: 20px;
    margin: 4px 0;
  }

  .stage-collage button:nth-child(1) {
    position: static;
    grid-column: 1 / 13;
    grid-row: 1;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    justify-self: stretch;
  }

  .stage-collage button:nth-child(2) {
    position: static;
    grid-column: 1 / 8;
    grid-row: 2;
    width: 100%;
    height: clamp(130px, 25vw, 190px);
    aspect-ratio: auto;
    justify-self: stretch;
    transform: translateY(6px);
  }

  .stage-collage button:nth-child(3) {
    position: static;
    grid-column: 8 / 13;
    grid-row: 2;
    width: 100%;
    height: clamp(130px, 25vw, 190px);
    aspect-ratio: auto;
    justify-self: stretch;
    transform: translateY(-5px);
  }

  .stage-collage button:nth-child(4) {
    position: static;
    grid-column: 1 / 6;
    grid-row: 3;
    width: 100%;
    height: clamp(130px, 25vw, 190px);
    aspect-ratio: auto;
    justify-self: stretch;
    transform: translateY(7px);
  }

  .stage-collage button:nth-child(5) {
    position: static;
    grid-column: 6 / 13;
    grid-row: 3;
    width: 100%;
    height: clamp(130px, 25vw, 190px);
    aspect-ratio: auto;
    justify-self: stretch;
    transform: translateY(-3px);
  }

  .stage-collage button:nth-child(6) {
    position: static;
    grid-column: 1 / 13;
    grid-row: 4;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    justify-self: stretch;
  }

  .gallery-footer {
    padding: 29px 0 27px;
    font-size: 12px;
  }

  .tour-banner {
    margin-top: 18px;
  }

  .modal {
    padding: 48px 16px 24px;
  }

  .modal-image {
    max-width: 100%;
    max-height: 82vh;
  }

  .modal-close {
    top: 8px;
    right: 8px;
  }

  .modal-navigation {
    width: 42px;
    height: 64px;
    background: rgba(0, 0, 0, 0.3);
    font-size: 44px;
  }

  .modal-previous {
    left: 4px;
  }

  .modal-next {
    right: 4px;
  }
}

@media (max-width: 420px) {
  main {
    padding-inline: 18px;
  }

  .gallery-frame {
    padding-inline: 8px;
  }

  .trio {
    grid-template-columns: 1fr 1fr;
  }

  .trio button:nth-child(3) {
    grid-column: 1 / 3;
    width: 58%;
    aspect-ratio: 3 / 2;
    justify-self: end;
  }

  .mobile-678 {
    grid-template-columns: 1fr 1.28fr 1fr;
    gap: 8px;
  }

  .mobile-678 button:nth-child(1),
  .mobile-678 button:nth-child(2),
  .mobile-678 button:nth-child(3) {
    grid-column: auto;
    width: 100%;
    height: clamp(150px, 42vw, 300px);
    margin: 0;
    aspect-ratio: auto;
    justify-self: stretch;
  }

  .feature-collage {
    gap: 8px;
  }

  .feature-collage button:nth-child(5) {
    width: 100%;
  }

  .stage-collage {
    column-gap: 8px;
    row-gap: 18px;
  }

  .stage-collage button:nth-child(5) {
    width: 100%;
  }

  .trio-portrait button:nth-child(3) {
    aspect-ratio: 3 / 2;
  }

  .mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
  }

  .mosaic button:first-child {
    grid-row: 1 / 3;
  }

  .mosaic button:nth-child(2),
  .mosaic button:nth-child(3) {
    grid-column: 2;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-row img {
    transition: none;
  }


}

.thankyou{
    
    margin-top: 40px;
}

.bnr2627{
    width: 80%;
    max-width: 1000px;
    margin: -40px auto 40px;
}
@media screen and (max-width: 896px){
    .thankyou{
    
    margin-top: 28px;
}
.bnr2627{
   
    margin: -20px auto 20px;
}
}