.posters-page {
    --bg-image: url("../../content/layers/red_back.JPEG");
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
}

.poster-thumb {
    display: block;
}

.poster-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--text-color);
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.poster-thumb:hover img,
.poster-thumb:focus-visible img {
    opacity: 1;
    transform: translateY(-2px);
}

.back-link {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 5;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

@media (max-width: 767px) {
    .poster-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 480px;
    }
    .back-link{
        position: relative;
    }
}

.poster-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10;
    background: rgba(0, 0, 0, 0.85);
}

.poster-lightbox:target {
    display: flex;
}

.poster-lightbox-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
    cursor: zoom-out;
}

.poster-lightbox-close img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border: 1px solid rgba(255, 255, 255, 0.6);
}



.back-link:hover {
    text-decoration: underline;
}

.back-button-img {
    width: 100px;
    display: block;
}

.back-button-img:hover {
    rotate: 5deg;
}

[data-theme="dark"] .back-button-img { filter: invert(1); }
