/* Gallery is rendered within offer cards, using their existing layout columns. */
.product-card--page .product-card__carusel.catalog-media-product {
    width: 100%;
    min-width: 0;
    height: auto;
}
.main-image-block.main-image-block--catalog-media {
    display: block;
    height: auto;
    overflow: visible;
}
.catalog-media-gallery,
.product-image-wrapper.catalog-media-gallery--popup {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    background: transparent;
}
.catalog-media-frame {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    max-height: 25rem;
    overflow: hidden;
    border: 1px solid #e2e6eb;
    border-radius: 8px;
    background: #fff;
}
.catalog-media-gallery--popup .catalog-media-frame {
    max-height: 17rem;
}
.catalog-media-frame .catalog-media-cover {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center;
}
.catalog-media-step {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d3dae2;
    border-radius: 50%;
    background: #fff;
    color: #183753;
    font: 700 1.5rem/1 sans-serif;
    cursor: pointer;
}
.catalog-media-step--prev { left: 8px; }
.catalog-media-step--next { right: 8px; }
.catalog-media-thumbnails {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    padding: .5rem .25rem .25rem;
}
.catalog-media-step[hidden], .catalog-media-thumbnails[hidden] {
    display: none;
}
.catalog-media-thumbnails a {
    display: block;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid #d3dae2;
    border-radius: 6px;
}
.catalog-media-thumbnails a[aria-current="true"] {
    border-color: #276eea;
    box-shadow: inset 0 0 0 1px #276eea;
}
.catalog-media-thumbnails img {
    display: block;
    width: 3.25rem;
    height: 3.25rem;
    object-fit: contain;
}
.catalog-media-links {
    margin-block: 1rem;
    overflow-wrap: anywhere;
}
.catalog-media-links h2 {
    font-size: 1.25rem;
}
