/* Black Sheep Boutique - Customer Product Gallery */

.bsb-storefront-gallery {
    width: min(920px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: 92vh;
    max-height: 92dvh;
    padding: 20px;
    margin: auto;
    overflow: auto;
    box-sizing: border-box;
    background: #fbf7ef;
    color: #25271f;
    border: 1px solid #d7cbb9;
    border-radius: 12px;
    box-shadow: 0 20px 70px rgba(0,0,0,.25);
}

.bsb-storefront-gallery::backdrop {
    background: rgba(22,25,19,.76);
}

.bsb-storefront-gallery .bsb-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.bsb-storefront-gallery .bsb-gallery-title {
    font-size: clamp(18px, 3vw, 26px);
    margin: 0;
    overflow-wrap: anywhere;
}

.bsb-storefront-gallery .bsb-gallery-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: min(55vh, 560px);
    background: #f0e9dc;
    border-radius: 8px;
    overflow: hidden;
}

.bsb-storefront-gallery .bsb-gallery-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bsb-storefront-gallery .bsb-gallery-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 0;
}

.bsb-storefront-gallery button {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #52633d;
    border-radius: 5px;
    background: #fbf7ef;
    color: #52633d;
    font: inherit;
    cursor: pointer;
}

.bsb-storefront-gallery button:hover:not(:disabled) {
    background: #52633d;
    color: white;
}

.bsb-storefront-gallery button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.bsb-storefront-gallery button:focus-visible,
.bsb-view-gallery:focus-visible {
    outline: 3px solid #52633d;
    outline-offset: 3px;
}

.bsb-storefront-gallery .bsb-gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px;
}

.bsb-storefront-gallery .bsb-gallery-thumbnail {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    padding: 4px;
    font-size: 12px;
    overflow: hidden;
}

.bsb-storefront-gallery .bsb-gallery-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bsb-storefront-gallery
.bsb-gallery-thumbnail[aria-pressed="true"] {
    border: 3px solid #52633d;
    background: #e4e9dc;
    color: #26331c;
}

.bsb-view-gallery {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px;
    border: 0;
    border-bottom: 1px solid #d7cbb9;
    background: #f5efe4;
    color: #52633d;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.bsb-view-gallery:hover {
    background: #e4e9dc;
}

.bsb-gallery-clickable {
    cursor: zoom-in;
}

@media (max-width: 600px) {
    .bsb-storefront-gallery {
        width: calc(100vw - 16px);
        max-width: calc(100vw - 16px);
        padding: 12px;
    }

    .bsb-storefront-gallery .bsb-gallery-stage {
        height: 45vh;
    }

    .bsb-storefront-gallery .bsb-gallery-thumbnail {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .bsb-storefront-gallery button {
        padding: 8px 12px;
    }
}