.detail-gallery {
    width: 44%;
    min-width: 0;
}

.detail-image-open {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px;
    width: 100%;
    min-height: 360px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 4px;
}

.detail-image-open > img {
    max-height: 360px;
    width: auto;
}

.detail-image-open > span {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--paper);
    border-radius: 50%;
    padding: 9px;
}

.detail-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.detail-thumbnails button {
    width: 72px;
    height: 65px;
    border: 1px solid var(--line);
    background: white;
    padding: 6px;
}

.detail-thumbnails img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.detail-thumbnails button[aria-pressed=true] {
    border-color: var(--brand);
}

@media(hover:hover) {
    .detail-image-open:hover,.detail-thumbnails button:hover {
        border-color: var(--brand);
        background: #faf8f4;
    }
}

@media(max-width:900px) {
    .detail-gallery {
        width: 100%;
    }
    .detail-image-open {
        padding: 20px;
        min-height: 280px;
    }
}

@media(max-width:700px) {
    .detail-gallery {
        width: 100%;
    }

    .detail-image-open {
        height: 300px;
        min-height: 0;
    }

    .detail-image-open > img {
        max-height: 100%;
    }
}
