.product-with-photo {
  display: flex;
  flex-direction: column;
}

.product-image-photo {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e2ecee;
  background: #fff;
}

.product-image-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform .25s ease;
}

.product-image-photo:hover img {
  transform: scale(1.035);
}

.product .product-gallery-trigger {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: auto;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  background: #102c3ce8;
  color: #fff;
  font-size: .72rem;
}

.product .category {
  margin: 0 0 .55rem;
}

.product .quote-price {
  display: block;
  line-height: 1.45;
}

.product-gallery-modal {
  width: min(1040px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.product-gallery-modal .close {
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 5px 18px #102c3c2b;
}

.product-gallery-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  min-height: 500px;
}

.product-gallery-media {
  background: #f2f7f8;
  display: grid;
  place-items: center;
  padding: 36px;
}

.product-gallery-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: contain;
}

.product-gallery-copy {
  padding: 70px 42px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.product-gallery-copy h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.product-gallery-copy > p:not(.eyebrow):not(.product-gallery-price) {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.7rem;
}

.product-gallery-price {
  color: var(--blue);
  font: 800 1.25rem Manrope, sans-serif;
  margin: .25rem 0 1.15rem;
}

.product-gallery-details {
  width: 100%;
  margin: 0 0 1.6rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-gallery-details summary {
  padding: 15px 0;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.product-gallery-details[open] summary {
  border-bottom: 1px solid var(--line);
}

.product-gallery-long-description {
  padding: 18px 0 6px;
}

.product-gallery-long-description p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
}

.product-gallery-specifications {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 22px;
}

.product-specification {
  padding: 11px 12px;
  background: #f3f8f8;
}

.product-specification dt {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: .7rem;
  font-weight: 800;
}

.product-specification dd {
  margin: 0;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
  white-space: pre-line;
}

.product-gallery-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 28px 26px;
  background: #fff;
}

.gallery-thumbnail {
  flex: 0 0 76px;
  height: 62px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f2f7f8;
  cursor: pointer;
}

.gallery-thumbnail.is-active,
.gallery-thumbnail:focus-visible {
  border-color: var(--blue);
  outline: none;
}

.gallery-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 720px) {
  .product-gallery-modal {
    width: min(calc(100% - 20px), 560px);
  }

  .product-gallery-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .product-gallery-media {
    min-height: 300px;
    padding: 28px;
  }

  .product-gallery-copy {
    padding: 44px 26px 26px;
  }

  .product-gallery-thumbnails {
    padding: 14px 18px 20px;
  }

  .product-gallery-specifications {
    grid-template-columns: 1fr;
  }
}
