/* Shared public-page offer: uploaded images retain their original aspect ratio. */
.home-offer {
    padding: 0;
    border: 1px solid #6652e8;
    border-radius: 12px;
    background: #09090d;
    color: #fff;
    width: calc(100vw - 2rem);
    width: min(900px, calc(100vw - 2rem));
    max-width: 900px;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow: auto;
    box-shadow: 0 24px 80px rgb(0 0 0 / 55%);
}
.home-offer:not([open]) { display: none; }
.home-offer::backdrop { background: rgb(0 0 0 / 75%); }
.home-offer-image-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.home-offer-image { display: block; width: 100%; height: auto; max-height: calc(100dvh - 2rem); object-fit: contain; }
.home-offer-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #111;
    border-radius: 50%;
    background: #fff;
    color: #111;
    box-shadow: 0 2px 10px rgb(0 0 0 / 50%);
    cursor: pointer;
}
.home-offer-close:hover { background: #e9e5ff; }
.home-offer-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.home-offer-image-button:focus-visible { outline: 3px solid #a99bff; outline-offset: -4px; }
body.home-offer-open { overflow: hidden; }
