/* INFINITY VENUE GALLERY V1 */

.infinity-gallery {
    margin: 22px 0;
    padding: 18px;
    border: 1px solid rgba(15, 42, 68, .12);
    border-radius: 18px;
    background: #f8fbff;
}

.infinity-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: #14334e;
}

.infinity-gallery-header strong {
    font-size: 15px;
    font-weight: 700;
}

.infinity-gallery-header span {
    font-size: 12px;
    opacity: .7;
}

.infinity-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.infinity-gallery-photo {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 16 / 10;
    background: #e5edf5;
}

.infinity-gallery-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.infinity-gallery-photo:hover img {
    transform: scale(1.06);
}

.infinity-gallery-photo:focus-visible {
    outline: 3px solid #c59a50;
    outline-offset: 3px;
}

.infinity-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 70px 64px;
    background: rgba(4, 14, 26, .96);
}

.infinity-lightbox.is-open {
    display: flex;
}

.infinity-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.infinity-lightbox-close,
.infinity-lightbox-prev,
.infinity-lightbox-next {
    position: absolute;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    font-size: 24px;
}

.infinity-lightbox-close {
    top: 18px;
    right: 18px;
}

.infinity-lightbox-prev {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.infinity-lightbox-next {
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.infinity-lightbox-counter {
    position: absolute;
    bottom: 18px;
    color: #fff;
    font-size: 13px;
}

@media (max-width: 640px) {
    .infinity-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .infinity-lightbox {
        padding: 70px 46px;
    }

    .infinity-lightbox-prev {
        left: 4px;
    }

    .infinity-lightbox-next {
        right: 4px;
    }
}