.pharmacy-gallery {
  scroll-margin-top: 110px;
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: 36px;
  border-top: 1px solid var(--marketing-line, #dcded7);
  min-width: 0;
}

.pharmacy-gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.pharmacy-gallery-heading .marketing-kicker {
  gap: 9px;
  color: #777a72;
  font-size: 9px;
  letter-spacing: .12em;
}

.pharmacy-gallery-heading .marketing-kicker::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--marketing-magenta, #e8007f);
  box-shadow: 9px 0 var(--marketing-cyan, #00adee), 18px 0 var(--marketing-yellow, #ffcd00);
  margin-right: 20px;
}

.pharmacy-gallery-heading h3 {
  margin: 16px 0 0;
  font-size: clamp(29px, 3.1vw, 42px);
  line-height: 1.1;
  letter-spacing: -.05em;
  font-weight: 500;
}

.pharmacy-gallery-heading p {
  max-width: 265px;
  margin: 0 0 2px;
  color: var(--marketing-muted, #666965);
  font-size: 12px;
  line-height: 1.75;
  text-wrap: pretty;
}

.pharmacy-gallery-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.pharmacy-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #dedfd8;
  background: #fff;
}

.pharmacy-card-zoom {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--marketing-ink, #161719);
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}

.pharmacy-card-image {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  width: 100%;
  padding: 16px 14px 42px;
  overflow: hidden;
  background: #fff;
}

.pharmacy-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  transition: transform .28s ease;
}

.pharmacy-card-zoom-label {
  position: absolute;
  right: 13px;
  bottom: 14px;
  left: 13px;
  color: #777b72;
  font-size: 9px;
  line-height: 1.4;
  text-align: center;
  letter-spacing: .025em;
  transition: color .2s ease;
}

.pharmacy-card-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 17px 18px;
  border-top: 1px solid #e8e9e3;
  background: #fafaf7;
}

.pharmacy-card-model {
  display: block;
  color: #777b72;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .12em;
}

.pharmacy-card-meta h4 {
  margin: 8px 0 0;
  color: var(--marketing-ink, #161719);
  font-size: clamp(23px, 2.1vw, 29px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.055em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.pharmacy-card-meta h4 small {
  margin-left: 2px;
  color: #73786d;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}

.pharmacy-card-order {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-bottom: 1px solid #a4a99e;
  color: var(--marketing-ink, #161719);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  transition: border-color .2s ease;
}

.pharmacy-gallery-note {
  margin: 20px 0 0;
  color: #777b72;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: .025em;
}

.pharmacy-card-zoom:focus-visible,
.pharmacy-card-order:focus-visible,
.pharmacy-lightbox-close:focus-visible,
.pharmacy-lightbox-order:focus-visible {
  outline: 3px solid #e8007f;
  outline-offset: 4px;
}

.pharmacy-card-zoom:focus-visible {
  z-index: 1;
  outline-offset: -4px;
}

.pharmacy-lightbox {
  box-sizing: border-box;
  width: min(1080px, calc(100% - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  max-height: calc(100svh - 48px);
  margin: auto;
  padding: 58px 34px 34px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #dcded7;
  border-radius: 4px;
  background: #fafaf7;
  color: #161719;
  box-shadow: 0 24px 90px rgb(0 0 0 / .2);
  font-family: Arial, Helvetica, sans-serif;
  color-scheme: light;
}

.pharmacy-lightbox *,
.pharmacy-lightbox *::before,
.pharmacy-lightbox *::after {
  box-sizing: border-box;
}

.pharmacy-lightbox::backdrop {
  background: rgb(22 23 25 / .68);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.pharmacy-lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0 0 2px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #161719;
  font: 300 31px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.pharmacy-lightbox-content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
}

.pharmacy-lightbox-content > img {
  display: block;
  width: 100%;
  height: min(66vh, 680px);
  height: min(66svh, 680px);
  min-width: 0;
  padding: 22px;
  object-fit: contain;
  background: #fff;
}

.pharmacy-lightbox-content > div {
  min-width: 0;
  padding-right: 14px;
}

.pharmacy-lightbox-content h3 {
  margin: 17px 0 22px;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.06em;
}

.pharmacy-lightbox-content p {
  max-width: 285px;
  margin: 0;
  color: #666965;
  font-size: 13px;
  line-height: 1.8;
}

.pharmacy-lightbox-order {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 52px;
  margin-top: 30px;
  padding-block: 14px;
  border-top: 1px solid #a4a99e;
  border-bottom: 1px solid #a4a99e;
  color: #161719;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: none;
  transition: border-color .2s ease;
}

@media (hover: hover) {
  .pharmacy-card-zoom:hover .pharmacy-card-image img { transform: scale(1.035); }
  .pharmacy-card-zoom:hover .pharmacy-card-zoom-label { color: #161719; }
  .pharmacy-card-order:hover,
  .pharmacy-lightbox-order:hover { border-color: #161719; }
  .pharmacy-lightbox-close:hover { background: #eeeee7; border-color: #dcded7; }
}

@media (max-width: 1180px) {
  .pharmacy-gallery-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pharmacy-card-image { aspect-ratio: 1 / 1.12; }
  .pharmacy-card-meta h4 { font-size: 29px; }
}

@media (max-width: 800px) {
  .pharmacy-gallery-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pharmacy-gallery-heading { align-items: flex-start; }
  .pharmacy-gallery-heading p { max-width: 200px; font-size: 11px; }
}

@media (max-width: 650px) {
  .pharmacy-gallery { margin-top: 36px; padding-top: 28px; }
  .pharmacy-gallery-heading { display: block; margin-bottom: 24px; }
  .pharmacy-gallery-heading .marketing-kicker { font-size: 8px; }
  .pharmacy-gallery-heading h3 { margin-top: 15px; font-size: 33px; }
  .pharmacy-gallery-heading p { max-width: none; margin-top: 15px; font-size: 12px; }
  .pharmacy-gallery-track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(80vw, 360px);
    gap: 14px;
    width: calc(100% + 40px);
    margin-inline: -20px;
    padding: 4px 20px 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
    scrollbar-width: thin;
    scrollbar-color: #b9bdb1 transparent;
    -webkit-overflow-scrolling: touch;
  }
  .pharmacy-card { scroll-snap-align: start; }
  .pharmacy-card-image { aspect-ratio: 1 / 1.1; padding: 18px 18px 45px; }
  .pharmacy-card-zoom-label { bottom: 17px; font-size: 9px; }
  .pharmacy-card-meta { gap: 16px; padding: 20px; }
  .pharmacy-card-model { font-size: 9px; }
  .pharmacy-card-meta h4 { font-size: 31px; }
  .pharmacy-card-order { min-height: 38px; font-size: 12px; }
  .pharmacy-gallery-note { margin-top: 9px; font-size: 9px; }
  .pharmacy-lightbox {
    width: calc(100% - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100svh - 24px);
    padding: 56px 20px 24px;
  }
  .pharmacy-lightbox-close { top: 6px; right: 8px; }
  .pharmacy-lightbox-content { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pharmacy-lightbox-content > img { height: 46vh; height: 46svh; padding: 16px; }
  .pharmacy-lightbox-content > div { padding-right: 0; }
  .pharmacy-lightbox-content h3 { margin: 12px 0 16px; font-size: 39px; }
  .pharmacy-lightbox-content p { max-width: none; font-size: 12px; }
  .pharmacy-lightbox-order { margin-top: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  .pharmacy-card-image img,
  .pharmacy-card-zoom-label,
  .pharmacy-card-order,
  .pharmacy-lightbox-close,
  .pharmacy-lightbox-order { transition: none; }
  .pharmacy-card-zoom:hover .pharmacy-card-image img { transform: none; }
  .pharmacy-gallery-track { scroll-behavior: auto; }
}
