/* Product screenshots are captured from the real applications. */
.product-gallery {
  background: linear-gradient(145deg, #162538, #0e1723);
  border-bottom: 1px solid var(--line);
}

.gallery-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 19px 23px 16px;
}

.gallery-heading .product-category,
.gallery-heading .product-index {
  position: static;
  line-height: 1.5;
}

.gallery-stage {
  position: relative;
  display: block;
  width: calc(100% - 36px);
  aspect-ratio: 16 / 10;
  padding: 0;
  margin: 0 18px;
  overflow: hidden;
  border: 1px solid #a5c5eb38;
  border-radius: 4px;
  background: #101720;
  cursor: zoom-in;
  box-shadow: 0 10px 30px #0003;
}

.gallery-stage > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
  transition: filter .25s;
}

.gallery-stage:hover > img { filter: brightness(1.05); }

.gallery-zoom {
  position: absolute;
  display: grid;
  place-items: center;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  background: #09101fe8;
  color: #c5e6fb;
  border: 1px solid #a6d1ed40;
  border-radius: 4px;
  transition: background .2s;
}

.gallery-zoom .icon { width: 16px; height: 16px; }
.gallery-stage:hover .gallery-zoom { background: #1e4563; }

.gallery-footer {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
}

.gallery-caption {
  font-size: 10px;
  color: #b4c8db;
  line-height: 1.5;
}

.gallery-controls,
.lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gallery-controls > button,
.lightbox-controls > button {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 1px solid #b6d0e62b;
  border-radius: 3px;
  background: #080f1b66;
  color: #c1d7eb;
}

.gallery-controls > button:hover,
.lightbox-controls > button:hover { border-color: var(--blue); color: var(--cyan); }
.gallery-controls > button .icon { width: 14px; height: 14px; }
[data-gallery-prev] > .icon,
[data-lightbox-prev] > .icon { transform: rotate(180deg); }
.gallery-counter { font: 8px var(--mono); color: #94aec8; white-space: nowrap; }

.gallery-thumbnails {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px 17px;
}

.gallery-thumbnails > button {
  width: 78px;
  aspect-ratio: 16 / 10;
  padding: 3px;
  border: 1px solid #b9d0ec2e;
  border-radius: 3px;
  background: #070d15;
  opacity: .65;
  transition: opacity .2s, border-color .2s;
}

.gallery-thumbnails > button[aria-pressed="true"] { opacity: 1; border-color: #7cc9ff; }
.gallery-thumbnails > button:hover { opacity: 1; }
.gallery-thumbnails > button > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gallery-hint { margin-left: auto; font: 7px var(--mono); letter-spacing: .6px; color: #8ba7c0; }

.storefront-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 18px;
}

.storefront-links .text-link { font-size: 11px; color: #a8d6f6; }
.storefront-links .icon { width: 15px; height: 15px; }
.product-actions-store { flex-wrap: wrap; row-gap: 18px; }
.product-actions-store .storefront-links { margin: 0; gap: 14px; }

.more-products {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px 60px;
  margin-top: 45px;
  padding: 35px 38px;
  border: 1px solid #73b7ec30;
  border-radius: 5px;
  background: radial-gradient(ellipse at 100% 100%, #234d7d20, transparent 65%), #101927;
}

.more-products .eyebrow { color: #81c5f3; font-size: 8px; margin-bottom: 14px; }
.more-products h3 { font-size: 30px; letter-spacing: -1px; }
.more-products p:not(.eyebrow) { max-width: 660px; margin-top: 15px; color: #a8b7ca; font-size: 12px; line-height: 1.9; }
.more-products .button { white-space: nowrap; }

body.lightbox-open { overflow: hidden; }
.product-lightbox {
  width: min(1280px, calc(100vw - 64px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 20px;
  color: var(--text);
  border: 1px solid #81b9e44d;
  border-radius: 6px;
  background: #0a111d;
  box-shadow: 0 30px 100px #0009;
}

.product-lightbox::backdrop { background: #02060de8; backdrop-filter: blur(12px); }
.lightbox-topbar { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 15px; }
.lightbox-product { color: #76c6fa; font: 9px var(--mono); text-transform: uppercase; letter-spacing: 1.3px; }
.lightbox-caption { margin-top: 7px; color: #cfdae7; font: 500 18px var(--display); line-height: 1.4; letter-spacing: -.4px; }
.lightbox-close { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: #111e2e; color: white; font-size: 26px; line-height: 1; }
.lightbox-close:hover { border-color: var(--blue); }
.lightbox-image { width: 100%; max-height: calc(100dvh - 220px); object-fit: contain; background: #05080e; border: 1px solid #a5c5eb21; }
.lightbox-controls { padding-top: 15px; }
.lightbox-controls > button { width: 35px; height: 35px; }
.lightbox-controls > button .icon { width: 17px; height: 17px; }
.lightbox-counter { min-width: 64px; text-align: center; color: #b1c7dd; font: 10px var(--mono); }
[hidden] { display: none !important; }

@media (max-width: 991px) {
  .gallery-heading { padding-inline: 18px; }
  .gallery-caption { font-size: 9px; }
  .gallery-footer { padding-inline: 18px; }
  .gallery-controls { gap: 7px; }
  .gallery-controls > button { width: 26px; height: 26px; }
  .gallery-hint { display: none; }
  .more-products { grid-template-columns: 1fr; gap: 25px; padding: 30px; }
  .more-products .button { justify-self: start; }
}

@media (max-width: 700px) {
  .gallery-caption { font-size: 10px; }
  .gallery-stage { width: calc(100% - 28px); margin-inline: 14px; }
  .gallery-heading { padding: 17px 18px 14px; }
  .gallery-footer { padding-block: 13px; }
  .gallery-thumbnails { padding-inline: 18px; }
  .gallery-thumbnails > button { width: 72px; }
  .gallery-controls > button { width: 30px; height: 30px; }
  .gallery-controls { gap: 8px; }
  .more-products { padding: 27px 23px; margin-top: 30px; }
  .more-products h3 { font-size: 28px; }
  .product-lightbox { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); padding: 13px; }
  .lightbox-caption { font-size: 15px; }
  .lightbox-product { font-size: 8px; }
  .lightbox-close { width: 34px; height: 34px; }
  .lightbox-image { max-height: calc(100dvh - 190px); }
}

@media (max-width: 380px) {
  .gallery-caption { max-width: 140px; font-size: 9px; }
  .gallery-controls { gap: 5px; }
  .gallery-counter { font-size: 7px; }
  .storefront-links { gap: 12px; }
  .storefront-links .text-link { font-size: 10px; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-stage > img,
  .gallery-thumbnails > button { transition: none; }
}
