/* Keep complete product photographs inside the theme's existing image frames. */
.woocommerce-product-gallery .ct-media-container img,
.products .product .ct-media-container img {
    object-fit: contain;
    object-position: center;
}

/* Native Blocksy slider: one photo frame, followed by four thumbnail slots. */
.single-product .woocommerce-product-gallery[data-gallery="default"] .ct-product-gallery-container,
.single-product .woocommerce-product-gallery[data-gallery="default"] .flexy-container {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}
.single-product .woocommerce-product-gallery[data-gallery="default"] .flexy {
    overflow: hidden;
    border: 1px solid var(--theme-border-color);
    border-radius: var(--brand-radius-panel, 20px);
    background: var(--theme-palette-color-8);
}
.single-product .woocommerce-product-gallery[data-gallery="default"] .flexy-item .ct-media-container {
    border-radius: 0;
    background: var(--theme-palette-color-8);
}
.single-product .woocommerce-product-gallery[data-thumbs="bottom"] .flexy-pills li {
    --thumbs-width: 25%;
}
.single-product .woocommerce-product-gallery .flexy-pills .ct-media-container {
    overflow: hidden;
    border-radius: var(--brand-radius-card, 12px);
    background: var(--theme-palette-color-8);
}
.single-product .woocommerce-product-gallery .flexy-pills .ct-media-container::after {
    border: 1px solid var(--theme-border-color);
}
.single-product .woocommerce-product-gallery .flexy-pills li.active .ct-media-container::after,
.single-product .woocommerce-product-gallery .flexy-pills li:hover .ct-media-container::after {
    border-color: var(--theme-palette-color-1);
}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    top: 16px;
    inset-inline-end: 16px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--theme-border-color);
    border-radius: 50%;
    background: var(--theme-palette-color-8);
    color: var(--theme-headings-color);
}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger::before {
    /* Lucide maximize-2, ISC: https://lucide.dev/icons/maximize-2 */
    inset: 12px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='m21 3-7 7'/%3E%3Cpath d='m3 21 7-7'/%3E%3Cpath d='M9 21H3v-6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='m21 3-7 7'/%3E%3Cpath d='m3 21 7-7'/%3E%3Cpath d='M9 21H3v-6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover {
    border-color: var(--theme-palette-color-1);
    background: var(--brand-soft);
    color: var(--theme-palette-color-1);
}
.single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:focus-visible {
    outline: 2px solid var(--theme-palette-color-1);
    outline-offset: 3px;
}
@media (max-width: 689.98px) {
    .single-product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
        top: 12px;
        inset-inline-end: 12px;
    }
}
