/**
 * MN Motorcycle Single View - Gallery & Video Styles
 * Passend zum SmartMag 10.3.2 Dark Theme
 */

/* ── Section Titles ── */
.mn-moto-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e54a19;
}

/* ── Gallery Grid ── */
.mn-moto-gallery-section {
    margin: 2.5rem 0;
}

.mn-moto-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mn-moto-gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: #1a1a1a;
    aspect-ratio: 3 / 2;
}

.mn-moto-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mn-moto-gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.85;
}

.mn-moto-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ccc;
    font-size: 0.75rem;
    line-height: 1.3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mn-moto-gallery-item:hover .mn-moto-gallery-caption {
    opacity: 1;
}

/* Erstes Bild groesser */
.mn-moto-gallery-grid .mn-moto-gallery-item:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
}

/* ── Video Section ── */
.mn-moto-video-section {
    margin: 2.5rem 0;
}

.mn-moto-video-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #111;
    margin-bottom: 1rem;
}

.mn-moto-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .mn-moto-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .mn-moto-gallery-grid .mn-moto-gallery-item:first-child {
        grid-column: 1 / -1;
    }

    .mn-moto-section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .mn-moto-gallery-grid {
        grid-template-columns: 1fr;
    }

    .mn-moto-gallery-item {
        aspect-ratio: 16 / 10;
    }
}
