.tnm-empty {
    text-align: center;
    color: #9a8b82;
    padding: 40px 0
}

.tnm-gallery {
    display: grid;
    grid-template-columns: repeat(var(--tnm-cols, 3), 1fr);
    gap: 22px;
}

@media(max-width:900px) {
    .tnm-gallery {
        grid-template-columns: repeat(2, 1fr)
    }
    button.tnm-card{
        margin: 0px !important;
    }
    .tnm-gallery{
        gap: 10px !important;
    }
    .tnm-card{
       border-radius: 12px !important; 
    }
}

@media(max-width:768px) {
    .tnm-gallery {
        grid-template-columns: repeat(2, 1fr)

    }
    button.tnm-card{
        margin: 0px !important;
    }
    .tnm-gallery{
        gap: 7px !important;
    }
    .tnm-card{
       border-radius: 12px !important; 
    }
}

.tnm-card {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
    aspect-ratio: 1/1;
    transition: transform .25s ease, box-shadow .25s ease;
}

.tnm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .16)
}

.tnm-card:focus-visible {
    outline: 3px solid #ff7aa8;
    outline-offset: 2px
}

.tnm-card-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover
}

.tnm-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 18px;
    background: linear-gradient(180deg, rgba(20, 12, 10, .62), rgba(20, 12, 10, .72));
    color: #fff;
    opacity: 0;
    transition: opacity .25s ease;
}

.tnm-card:hover .tnm-card-overlay,
.tnm-card:focus-visible .tnm-card-overlay {
    opacity: 1
}

.tnm-line {
    font-size: 14px;
    font-weight: 400;
}

.tnm-line strong {
    font-weight: 700
}

.tnm-muted {
    color: rgba(255, 255, 255, .82);
    font-size: 14px
}

.tnm-book {
    margin-top: 6px;
    font-size: 16px;
    font-weight: 700;
    border-top: 1px solid rgba(255, 255, 255, .35);
    padding-top: 10px
}

.tnm-lb {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    background: rgba(10, 8, 7, .92);
    align-items: center;
    justify-content: center;
    padding: 24px
}

.tnm-lb.open {
    display: flex
}

.tnm-lb-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    max-width: 90vw;
    max-height: 88vh
}

.tnm-lb-img {
    max-width: min(680px, 86vw);
    max-height: 74vh;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    background: #fff
}

.tnm-lb-meta {
    color: #fff;
    text-align: center;
    font-size: 15px;
    line-height: 1.5
}

.tnm-lb-meta .b {
    font-weight: 700
}

.tnm-lb-meta .m {
    color: rgba(255, 255, 255, .8);
    font-size: 14px
}

.tnm-lb-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    background: none;
    border: none;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    opacity: .85
}

.tnm-lb-close:hover {
    opacity: 1
}

.tnm-lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 90px;
    border: none;
    cursor: pointer;
    background: rgba(0, 0, 0, .4);
    color: #fff;
    font-size: 40px;
    line-height: 1;
    border-radius: 10px;
    transition: background .2s
}

.tnm-lb-nav:hover {
    background: rgba(0, 0, 0, .65)
}

.tnm-lb-prev {
    left: 24px
}

.tnm-lb-next {
    right: 24px
}

.tnm-lb-counter {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 14px;
    padding: 7px 16px;
    border-radius: 20px
}

@media(max-width:560px) {
    .tnm-lb-nav {
        width: 46px;
        height: 70px;
        font-size: 30px
    }

    .tnm-lb-prev {
        left: 8px
    }

    .tnm-lb-next {
        right: 8px
    }
}