﻿.filmstrip-wrapper {
    position: relative;
}

.filmstrip-title {
    font-weight: bold;
    padding-left: 0.5rem;
    color: var(--color-text-dark);
}

.filmstrip-container {
    display: flex;
    overflow-x: scroll;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: transparent transparent;
}
    .filmstrip-container img {
        cursor: pointer;
    }
    .filmstrip-container.grabbing * {
        cursor: grabbing;
    }

.filmstrip-item {
    padding: 4px;
    flex: 0 0 auto;
    flex: 0 0 180px;
    text-align: left;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.filmstrip-arrow {
    top: 50%;
    border: 0;
    z-index: 1;
    width: 48px;
    height: 48px;
    color: white;
    font-size: 24px;
    position: absolute;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    transform: translateY(-50%);
    font-family: Arial, sans-serif;
}
    .filmstrip-arrow.left {
        left: 0;
    }
    .filmstrip-arrow.right {
        right: 0;
    }
    .filmstrip-arrow[disabled] {
        opacity: 0.3;
    }

@media (min-width: 960px) {
    .filmstrip-item {
        flex: 0 0 calc(100% / 4);
    }
}

@media (min-width: 1260px) {
    .filmstrip-item {
        flex: 0 0 calc(100% / 5);
    }
}

/* ============================================================================== */
/* Filmstrip overlay styling */
/* ============================================================================== */
.image-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%;
    background: rgb(109 101 101 / 74%);
    z-index: 9999;
}
    .image-overlay.active {
        display: block;
    }

.overlay-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
    .overlay-content img {
        width: auto;
        height: auto;
        max-width: min(90vw, 90vh);
        max-height: min(90vh, 90vw);
        object-fit: contain;
        border-radius: 4px;
    }

.overlay-close {
    position: fixed;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: var(--bs-danger);
    font-size: 48px;
    z-index: 10001;
}
    .overlay-close:hover {
        opacity: 0.7;
    }