/* Indicador de zoom */
.ws-zoom-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.ws-zoom-trigger img {
    display: block;
    width: 100%;
    height: auto;
}

.ws-zoom-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.62);
    pointer-events: none;
    transition: background 200ms ease;
}

.ws-zoom-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: center / 20px 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3Cpath d='M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E");
}

.ws-zoom-host:hover .ws-zoom-badge::before,
.ws-zoom-trigger:hover .ws-zoom-badge::before,
.ws-zoom-trigger:focus-visible .ws-zoom-badge::before {
    filter: invert(1);
}

.ws-zoom-host:hover .ws-zoom-badge,
.ws-zoom-trigger:hover .ws-zoom-badge,
.ws-zoom-trigger:focus-visible .ws-zoom-badge {
    background: #f4c600;
}

/* Lightbox */
.ws-zoom {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 88px;
    background: rgba(0, 0, 0, 0.92);
}

.ws-zoom__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0;
    max-width: 100%;
    max-height: 100%;
}

.ws-zoom__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    border: 2px solid #f4c600;
    border-radius: 4px;
    background: #000;
}

.ws-zoom__caption {
    color: #fff;
    font-size: 15px;
    line-height: 1.3;
    text-align: center;
}

.ws-zoom__caption:empty {
    display: none;
}

.ws-zoom__close,
.ws-zoom__nav {
    position: absolute;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.ws-zoom__nav {
    border-color: #f4c600;
}

.ws-zoom__close svg,
.ws-zoom__nav svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.ws-zoom__close:hover,
.ws-zoom__nav:hover,
.ws-zoom__close:focus-visible,
.ws-zoom__nav:focus-visible {
    color: #111;
    background: #f4c600;
    border-color: #f4c600;
    outline: none;
}

.ws-zoom__close {
    top: 16px;
    right: 16px;
}

.ws-zoom__nav {
    top: 50%;
    transform: translateY(-50%);
}

.ws-zoom__nav--prev {
    left: 20px;
}

.ws-zoom__nav--next {
    right: 20px;
}

body.ws-zoom-open {
    overflow: hidden;
}

@media (max-width: 639px) {
    .ws-zoom {
        padding: 64px 12px 84px;
    }

    .ws-zoom__image {
        max-height: calc(100vh - 170px);
    }

    .ws-zoom__nav {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .ws-zoom__nav--prev {
        left: calc(50% - 56px);
    }

    .ws-zoom__nav--next {
        right: calc(50% - 56px);
    }
}
