.detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
  align-items: start;
}

.detail-card > div:first-child,
.copy > div {
  min-width: 0;
}

.gallery-main {
  aspect-ratio: 16 / 10;
  height: auto;
  touch-action: pan-y;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  will-change: opacity, transform;
}

.detail-pad {
  height: 100%;
  padding: 32px;
}

.copy {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 48px;
  padding: 40px;
}

.copy h2 {
  margin: 0 0 20px;
  font-size: 28px;
  line-height: 1.15;
}

.copy p {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: 17px;
  line-height: 1.75;
}

.hours {
  margin-top: 26px;
  padding: 18px 20px;
}

.hours b {
  display: block;
  margin-bottom: 7px;
  color: #b81016;
  letter-spacing: .12em;
}

.thumbs {
  max-width: 100%;
  overscroll-behavior-inline: contain;
}

html.lightbox-active,
html.lightbox-active body {
  overflow: hidden;
}

.lightbox.open {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.lightbox-bar {
  position: relative;
  z-index: 3;
  top: auto;
  right: auto;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: rgba(14,20,27,.86);
  box-shadow: 0 12px 36px rgba(0,0,0,.38);
  backdrop-filter: blur(10px);
}

.lightbox-bar button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.1);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-bar button:hover {
  background: rgba(255,255,255,.22);
}

.lightbox-bar .close-control {
  background: #d71920;
}

.lightbox-bar .close-control:hover {
  background: #b81016;
}

.lightbox-bar span {
  min-width: 54px;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.lightbox-bar .tool-separator {
  min-width: 1px;
  width: 1px;
  height: 28px;
  margin: 0 3px;
  background: rgba(255,255,255,.2);
}

.lightbox-stage {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  padding: 18px 28px 28px;
  place-items: center;
  touch-action: none;
  cursor: zoom-out;
  overflow: hidden;
}

.lightbox-stage img {
  display: block;
  max-width: calc(100vw - 56px);
  max-height: calc(100vh - 118px);
  object-fit: contain;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center;
  will-change: transform;
  -webkit-touch-callout: none;
}

.lightbox-stage.pinching,
.lightbox-stage.pinching img {
  cursor: zoom-in;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-main img,
  .lightbox-stage {
    animation: none !important;
  }
}

.lightbox-stage.zoomed img {
  cursor: grab;
}

.lightbox-stage.dragging,
.lightbox-stage.dragging img {
  cursor: grabbing;
}

@media (max-width: 950px) {
  .detail-card {
    grid-template-columns: 1fr;
  }

  .copy {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 30px;
  }
}

@media (max-width: 600px) {
  .gallery-main {
    aspect-ratio: 4 / 3;
  }

  .detail-pad,
  .copy {
    padding: 22px;
  }

  .copy h2 {
    font-size: 24px;
  }

  .copy p {
    font-size: 16px;
    line-height: 1.65;
  }

  .lightbox-stage {
    padding: 10px 12px 12px;
  }

  .lightbox-stage img {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 96px);
  }

  .lightbox-bar {
    top: auto;
    right: auto;
    left: auto;
    margin-top: max(8px, env(safe-area-inset-top));
    justify-content: center;
    gap: 6px;
  }

  .lightbox-bar button {
    width: 40px;
    height: 40px;
  }
}
