.ic-gallery {
    margin-top: 32px;
}

.ic-gallery__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ic-gallery__item {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.ic-gallery__image {
    width: 100%;
    height: 176px;
    display: block;
    object-fit: cover;
}

.ic-gallery__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.ic-lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #000000ed;
    z-index: 9999;
}

.ic-lightbox[hidden] {
    display: none;
}

.ic-lightbox__content {
    position: relative;
    padding: 12px;
}

.ic-lightbox__image {
    max-width: 80vw;
    max-height: 80vh;
    display: block;
    border-radius: 4px;
}

.ic-lightbox__close {
    position: absolute;
    top: 0;
    right: -40px;
    width: auto;
    height: auto;
    border-radius: 999px;
    border: 0;
    color: white;
    font-size: 36px;
    cursor: pointer;
    font-weight: 200;
}

.ic-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    background: #1A1919;
    color: white;
    font-size: 27px;
    cursor: pointer;
    border-radius: 8px;
}

.ic-lightbox__nav--prev {
    left: -100px;
}

.ic-lightbox__nav--next {
    right: -100px;
}

.ic-lightbox__nav.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.ic-lightbox-open {
    overflow: hidden;
}

@media (max-width: 1024px) {
    .ic-lightbox__nav--next {
        right: 30px;
    }

    .ic-lightbox__nav--prev {
        left: 30px;
    }
}

@media (max-width: 900px) {
    .ic-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ic-gallery__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .ic-lightbox__nav--prev {
        position: absolute !important;
        left: 0 !important;
        background: transparent;
        width: 30px;
    }

    .ic-lightbox__nav--next {
        position: absolute !important;
        right: 0 !important;
        background: transparent;
        width: 30px;
    }

    .ic-lightbox__image {
        max-width: 100%;
        max-height: 70vh;
    }

    .ic-lightbox__close {
        right: 22px !important;
    }

    .ic-lightbox {
        padding: 0 !important;
    }

    .ic-lightbox__content {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 !important;
    }
}
