.image-viewer-trigger {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.image-viewer-trigger img {
    transition: filter .2s ease, transform .2s ease;
}

.image-viewer-trigger:hover img {
    filter: brightness(.92);
}

.announcement-image-trigger {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    overflow: hidden;
    border-radius: 12px;
}

.announcement-image-trigger .announcement-image {
    display: block;
    width: 100%;
    height: 100%;
}

.announcement-image-trigger:hover .announcement-image {
    transform: scale(1.06);
}

.gallery-image-trigger {
    width: 100%;
    overflow: hidden;
    border-radius: .375rem;
}

.gallery-image-trigger:hover img {
    transform: scale(1.035);
}

.website-image-viewer {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    color: #f8fafc;
    background: #020617;
}

.website-image-viewer::backdrop {
    background: #020617;
}

.website-image-viewer__frame {
    position: relative;
    width: 100%;
    height: 100%;
}

.website-image-viewer__close {
    position: absolute;
    z-index: 3;
    top: max(16px, env(safe-area-inset-top));
    right: max(16px, env(safe-area-inset-right));
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .32);
    place-items: center;
    color: #fff;
    background: rgba(15, 23, 42, .62);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .28);
    font: inherit;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background-color .18s ease, transform .18s ease;
}

.website-image-viewer__close:hover {
    background: rgba(15, 23, 42, .88);
    transform: scale(1.05);
}

.website-image-viewer__stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: #020617;
}

.website-image-viewer__image {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.website-image-viewer__caption {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 34vh;
    overflow: auto;
    padding: 64px 24px max(22px, env(safe-area-inset-bottom));
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, .84) 38%, rgba(2, 6, 23, .94));
}

.website-image-viewer__caption h2 {
    margin: 0;
    font-size: clamp(1.05rem, 2.5vw, 1.4rem);
    font-weight: 800;
}

.website-image-viewer__caption p {
    margin: 7px 0 0;
    color: #e2e8f0;
    line-height: 1.6;
    white-space: pre-line;
}

@media (max-width: 575px) {
    .website-image-viewer__caption {
        max-height: 38dvh;
        padding: 72px 18px max(18px, env(safe-area-inset-bottom));
    }

    .website-image-viewer__caption h2 {
        font-size: 1rem;
    }

    .website-image-viewer__close {
        top: max(12px, env(safe-area-inset-top));
        right: max(12px, env(safe-area-inset-right));
        width: 42px;
        height: 42px;
    }
}
