/* Active product worlds only. Keep the desktop composition and reflow narrow screens. */
.cla-product-modal .container,
.cla-product-modal [class*="col-"] { box-sizing: border-box; }
.cla-product-modal .modal-body { overflow-wrap: anywhere; }
.cla-product-modal .modal-body img { max-width: 100%; height: auto; }
.cla-product-modal .cla-product-brand-wrap { width: 40%; margin: 0 auto; }
.cla-product-modal .cla-product-brand { height: auto; }
.cla-product-modal .cla-product-gallery {
  display: grid;
  grid-template-columns: var(--cla-gallery-columns, repeat(3, minmax(0, 1fr)));
  align-items: center;
  gap: 24px;
  margin: 30px auto;
}
.cla-product-gallery figure { min-width: 0; margin: 0; }
.cla-product-modal .cla-product-gallery img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.cla-product-modal button.close-modal { border: 0; padding: 0; }
.cla-product-modal button.close-modal .lr,
.cla-product-modal button.close-modal .rl { display: block; }
.cla-product-modal button:focus-visible { outline: 2px solid #881111; outline-offset: 4px; }
.cla-product-modal .btn[data-dismiss="modal"] { max-width: 100%; min-height: 44px; white-space: normal; }

@media (min-width: 601px) and (max-width: 991px) {
  .cla-product-modal .cla-product-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cla-product-modal .cla-product-gallery > figure:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 12px); justify-self: center; }
}

@media (max-width: 767px) {
  .cla-product-modal .modal-content { padding: 70px 0 36px; }
  .cla-product-modal .modal-content > .container { width: auto; }
  .cla-product-modal .modal-body { padding: 15px 5px; }
  .cla-product-modal.cla-genuss-modal .modal-body { padding: 15px 5px; }
  .cla-product-modal .modal-body p,
  .cla-product-modal .cla-art-copy p,
  .cla-product-modal .cla-genuss-intro { font-size: 16px; line-height: 1.65; }
  .cla-product-modal .modal-body h2:not(.sr-only) { font-size: clamp(24px, 5vw, 32px); line-height: 1.3; }
  .cla-product-modal .modal-body h3 { font-size: 20px; line-height: 1.4; }
  .cla-product-modal .cla-desktop-break { display: none; }
  .cla-product-modal .cla-product-brand { width: min(80%, 280px) !important; max-width: 100% !important; }
  .cla-product-modal .cla-product-brand-wrap { width: 100%; margin: 0 auto; }
  .cla-product-modal .cla-product-brand-wrap img { display: block !important; margin-left: auto; margin-right: auto; }
  .cla-product-modal .cla-product-feature { width: 100% !important; max-width: 460px !important; }
  .cla-product-modal button.close-modal { top: 12px; right: 12px; width: 44px; height: 44px; }
  .cla-product-modal button.close-modal .lr { height: 32px; margin: 6px auto; }
  .cla-product-modal button.close-modal .lr .rl { height: 32px; }
  .cla-product-modal .cla-genuss-close { top: -58px; right: 0; width: 44px; height: 44px; padding: 0; line-height: 44px; }
}

@media (max-width: 600px) {
  .cla-product-modal .cla-product-gallery,
  .cla-product-modal .cla-genuss-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cla-product-modal.fade { transition: none; }
}
