.tv-gallery-shell {
    width: 100%;
    max-width: 1222px;
    margin: 0 auto 24px;
    padding: 0 20px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 12px;
    direction: ltr;
}

.tv-gallery-main {
    display: block;
    min-height: 360px;
    border-radius: 12px;
    overflow: hidden;
    background: #eceff3;
}

.tv-gallery-main img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

.tv-gallery-grid {
    position: relative;
    min-height: 360px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tv-gallery-thumb {
    display: block;
    min-height: 174px;
    border-radius: 10px;
    overflow: hidden;
    background: #eceff3;
}

.tv-gallery-thumb img {
    width: 100%;
    height: 100%;
    min-height: 174px;
    object-fit: cover;
    display: block;
}

.tv-gallery-more-btn {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 5, 111, 0.88);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 12px 16px;
    cursor: pointer;
}

.tv-gallery-hidden-item {
    display: none;
}

.tv-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
}

.tv-lightbox.is-open {
    display: block;
}

.tv-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.tv-lightbox-frame {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 76px;
    box-sizing: border-box;
}

.tv-lightbox-image {
    display: block;
    max-width: min(1200px, 100%);
    max-height: calc(100vh - 110px);
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
}

.tv-lightbox-close,
.tv-lightbox-prev,
.tv-lightbox-next {
    position: absolute;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tv-lightbox-close {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    font-size: 28px;
    line-height: 1;
}

.tv-lightbox-prev,
.tv-lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    font-size: 34px;
    line-height: 1;
}

.tv-lightbox-prev {
    left: 18px;
}

.tv-lightbox-next {
    right: 18px;
}

.tv-lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
}

body.tv-lightbox-open {
    overflow: hidden;
}

@media (max-width: 992px) {
    .tv-gallery-shell {
        grid-template-columns: 1fr;
    }

    .tv-gallery-main,
    .tv-gallery-main img {
        min-height: 260px;
    }

    .tv-gallery-grid {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .tv-gallery-shell {
        padding: 0 14px;
        gap: 10px;
    }

    .tv-gallery-grid {
        gap: 10px;
    }

    .tv-gallery-thumb,
    .tv-gallery-thumb img {
        min-height: 112px;
    }

    .tv-gallery-more-btn {
        right: 8px;
        bottom: 8px;
        padding: 10px 13px;
        font-size: 12px;
    }

    .tv-lightbox-frame {
        padding: 20px 50px;
    }

    .tv-lightbox-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 25px;
    }

    .tv-lightbox-prev,
    .tv-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .tv-lightbox-prev {
        left: 8px;
    }

    .tv-lightbox-next {
        right: 8px;
    }
}
