

/* Start:/local/components/nik/gallery/templates/.default/style.css?17696113535248*/
/* NIK GALLERY COMPONENT */

.nik-gallery {
    padding: 20px 0;
}

.nik-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.nik-gallery__item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nik-gallery__item:hover {
    transform: translateY(-5px);
}

.nik-gallery__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--opdev-gray-100);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nik-gallery__thumb img {
    object-position: top;
    transition: transform 0.5s ease;
}

.nik-gallery__item:hover .nik-gallery__thumb img {
    transform: scale(1.08);
}

.nik-gallery__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nik-gallery__item:hover .nik-gallery__overlay {
    opacity: 1;
}

.nik-gallery__zoom-icon {
    width: 40px;
    height: 40px;
    color: var(--opdev-white);
}

.nik-gallery__caption {
    margin-top: 15px;
    font-size: 14px;
    color: var(--opdev-gray-600);
    text-align: center;
    line-height: 1.4;
}

/* FULLSCREEN SLIDER */

.nik-gallery__fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--opdev-white);
    display: none;
    flex-direction: column;
    padding: 0;
}

.nik-gallery__fullscreen.active {
    display: flex;
}

.nik-gallery__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--opdev-gray-100);
    color: var(--opdev-gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.nik-gallery__close:hover {
    background: var(--opdev-gray-200);
}

.nik-gallery__swiper-main {
    flex: 1;
    width: 100%;
    overflow: hidden;
    padding-top: 20px;
}

.nik-gallery__slide-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 0 40px;
    box-sizing: border-box;
}

.nik-gallery__main-img {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: 4px;
}

.nik-gallery__slide-info {
    margin-top: 15px;
    text-align: center;
    max-width: 800px;
}

.nik-gallery__slide-title {
    font-size: 18px;
    color: var(--opdev-gray-900);
    margin-bottom: 5px;
}

.nik-gallery__slide-desc {
    font-size: 14px;
    color: var(--opdev-gray-600);
}

.nik-gallery__swiper-main .swiper-button-next,
.nik-gallery__swiper-main .swiper-button-prev {
    width: 48px;
    height: 48px;
    background: var(--opdev-gray-100);
    border-radius: 50%;
    color: var(--opdev-gray-800);
    transition: background 0.3s ease;
}

.nik-gallery__swiper-main .swiper-button-next:after,
.nik-gallery__swiper-main .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.nik-gallery__swiper-main .swiper-button-next:hover,
.nik-gallery__swiper-main .swiper-button-prev:hover {
    background: var(--opdev-gray-200);
    color: var(--opdev-primary);
}

.nik-gallery__footer {
    background: var(--opdev-gray-100);
    padding: 15px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    border-top: 1px solid var(--opdev-gray-200);
    height: 110px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.nik-gallery__swiper-thumbs .swiper-wrapper {
    justify-content: center;
}

.nik-gallery__swiper-thumbs {
    height: 80px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.nik-gallery__swiper-thumbs .swiper-slide {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.5;
    border: 2px solid transparent;
    background: var(--opdev-white);
    transition: all 0.3s ease;
}

.nik-gallery__swiper-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--opdev-primary);
    transform: scale(1.05);
}

.nik-gallery__swiper-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    box-sizing: border-box;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .nik-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 575px) {
    .catalog .catalog_block:has(.nik-gallery) {
        display: block !important;
    }

    .nik-gallery {
        width: 100% !important;
    }

    .nik-gallery__grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        gap: 25px !important;
        padding: 0 20px !important;
    }

    .nik-gallery__item {
        width: 100% !important;
        max-width: 400px !important;
        margin: 0 auto !important;
    }

    .nik-gallery__thumb img {
        object-position: top !important;
    }
    
    .nik-gallery__swiper-main .swiper-button-next,
    .nik-gallery__swiper-main .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
}

/* End */
/* /local/components/nik/gallery/templates/.default/style.css?17696113535248 */
