/* =========================
   Screenshots Grid
========================= */

.tm-screenshots__media {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.tm-screenshots__image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.tm-screenshots__media:hover .tm-screenshots__image {
    transform: scale(1.05);
}

/* Overlay */
.tm-screenshots__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tm-screenshots__media:hover .tm-screenshots__overlay {
    opacity: 1;
}

.tm-screenshots__overlay-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    padding: 0 10px;
}

/* =========================
   Lightbox
========================= */

.tm-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.tm-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

/* Dialog container */
.tm-lightbox__dialog {
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 1100px;
}

/* Main content */
.tm-lightbox__content {
    position: relative;
    text-align: center;
}

/* Image */
.tm-lightbox__image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

/* Caption */
.tm-lightbox__caption {
    margin-top: 12px;
    font-size: 18px;
    color: #ffffff;
}

/* Counter */
.tm-lightbox__counter {
    margin-top: 4px;
    font-size: 14px;
    color: #d1d5db;
}

/* Close button */
.tm-lightbox__close {
    position: absolute;
    top: -40px;
    right: 10px;
    font-size: 36px;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

.tm-lightbox__close:hover {
    color: #f87171;
}

/* Navigation arrows */
.tm-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    font-size: 48px;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 20;
}

.tm-lightbox__nav:hover {
    color: #e5e7eb;
}

.tm-lightbox__nav--prev {
    left: -40px;
}

.tm-lightbox__nav--next {
    right: -40px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {
    .tm-lightbox__nav--prev {
        left: 10px;
    }

    .tm-lightbox__nav--next {
        right: 10px;
    }

    .tm-lightbox__close {
        top: 10px;
        right: 10px;
    }
}