/* Media tiles + modal styling (photos / RuTube videos) */

.mini-media-strip {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mini-media-tile {
    position: relative;
    width: 56px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    display: block;
    background: rgba(0, 0, 0, 0.04);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.mini-media-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mini-media-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.12) 0%, rgba(0,0,0,0.04) 100%);
}

.mini-media-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.35);
    font-size: 14px;
}

/* Big tiles on direction page */
.media-tile {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.04);
    aspect-ratio: 16 / 9;
    box-shadow: 0 10px 26px rgba(0,0,0,0.08);
    transform: translateY(0);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.media-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.10);
}

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

.media-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.14) 0%, rgba(0,0,0,0.04) 100%);
}

.media-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    text-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

/* Modal */
#mediaModal .modal-body {
    padding: 0;
}

.media-modal-body {
    width: 100%;
    background: #000;
}

.media-modal-body img {
    width: 100%;
    height: auto;
    display: block;
}

.media-modal-body iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}
