a.shop-detail-image {
    display: block;
    position: relative;
    cursor: zoom-in;
}

.shop-photo-zoom {
    position: absolute;
    inset: auto .65rem .65rem auto;
    padding: .55rem .7rem;
    border: 1px solid #d8c9b9;
    border-radius: .45rem;
    background: #fffbf5;
    color: #713f29;
    font: 650 .84rem/1.3 system-ui, sans-serif;
}

a.shop-detail-image:hover .shop-photo-zoom {
    background: #f2e6d9;
}

a.shop-detail-image:focus-visible,
.shop-image-dialog button:focus-visible {
    outline: 2px solid #713f29;
    outline-offset: 3px;
}

.shop-image-dialog {
    box-sizing: border-box;
    width: min(95vw, 76rem);
    max-width: none;
    max-height: calc(100dvh - 1rem);
    padding: .7rem;
    border: 1px solid #e2d7c8;
    border-radius: .85rem;
    background: #fff;
    color: #33271e;
}

.shop-image-dialog::backdrop { background: rgb(29 21 15 / 78%); }
html:has(.shop-image-dialog[open]) { overflow: hidden; }

.shop-image-dialog form {
    display: flex;
    justify-content: flex-end;
    margin-block-end: .5rem;
}

.shop-image-dialog button {
    min-height: 44px;
    padding: .45rem .75rem;
    border: 1px solid #d8c9b9;
    border-radius: .45rem;
    background: #fffbf5;
    color: #713f29;
    font: inherit;
    cursor: pointer;
}

.shop-image-dialog img {
    display: block;
    width: 100%;
    height: min(79dvh, calc(100dvh - 5rem));
    object-fit: contain;
}
