﻿.gallery-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* Legacy header styles — replaced by event-hero.css */
.gallery-page .event-header {
    display: none;
}

.event-fotos-results-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #9aa4b2;
}

.event-fotos-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 28px 0 8px;
}

.event-fotos-pagination__nav,
.event-fotos-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: border-color 0.15s, background 0.15s;
}

.event-fotos-pagination__nav:hover,
.event-fotos-pagination__page:hover {
    border-color: rgba(227, 6, 19, 0.45);
    background: rgba(227, 6, 19, 0.08);
    color: #fff;
}

.event-fotos-pagination__page.is-current {
    border-color: rgba(227, 6, 19, 0.55);
    background: rgba(227, 6, 19, 0.18);
    color: #fff;
    font-weight: 600;
}

.event-fotos-pagination__nav.is-disabled,
.event-fotos-pagination__gap {
    opacity: 0.35;
    pointer-events: none;
}

.event-fotos-pagination__gap {
    min-width: auto;
    border: none;
    background: none;
    padding: 0 4px;
}

.event-fotos-toolbar {
    background: rgba(16, 18, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 18px 20px;
    margin-bottom: 28px;
}

.event-fotos-filters {
    padding: 16px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.event-fotos-filters__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.event-fotos-filters__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #9aa3b2;
    font-size: 14px;
}

.event-fotos-filters__title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #f0f2f5;
}

.event-fotos-filters__hint {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #7a8494;
}

.event-fotos-filter-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px 12px;
    margin-bottom: 16px;
}

.ef-fotograf-filter {
    margin-bottom: 18px;
    padding: 18px 18px 16px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(225, 29, 46, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.16));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 3px 0 0 #e11d2e;
}

.ef-fotograf-filter__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.ef-fotograf-filter__title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.ef-fotograf-filter__badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(225, 29, 46, 0.16);
    border: 1px solid rgba(225, 29, 46, 0.28);
    color: #ff8f98;
    font-size: 15px;
}

.ef-fotograf-filter__label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 4px;
    cursor: pointer;
}

.ef-fotograf-filter__hint {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #7a8494;
}

.ef-fotograf-filter__meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    color: #b8c0cc;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ef-fotograf-filter__meta i {
    color: #e11d2e;
    font-size: 10px;
}

.ef-fotograf-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.ef-fotograf-search__icon {
    position: absolute;
    left: 16px;
    font-size: 13px;
    color: #6b7380;
    pointer-events: none;
}

.ef-fotograf-search__input {
    width: 100%;
    padding: 12px 44px 12px 42px !important;
    border-radius: 14px !important;
    background: rgba(6, 7, 8, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    font-size: 14px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ef-fotograf-search__input:focus {
    border-color: rgba(225, 29, 46, 0.45) !important;
    box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.12) !important;
}

.ef-fotograf-search__clear {
    position: absolute;
    right: 10px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #9aa3b2;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.ef-fotograf-search__clear:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.ef-fotograf-picker {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.ef-fotograf-picker__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.ef-fotograf-picker__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #6b7380;
}

.ef-fotograf-picker__nav {
    display: inline-flex;
    gap: 6px;
}

.ef-fotograf-picker__nav[hidden] {
    display: none !important;
}

.ef-fotograf-picker__arrow {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #c5ccd6;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ef-fotograf-picker__arrow:hover {
    border-color: rgba(225, 29, 46, 0.35);
    background: rgba(225, 29, 46, 0.1);
    color: #fff;
}

.ef-fotograf-scroll-wrap {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -4px;
    padding: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.ef-fotograf-scroll-wrap::-webkit-scrollbar {
    display: none;
}

.ef-fotograf-scroll-wrap::before,
.ef-fotograf-scroll-wrap::after {
    content: '';
    position: sticky;
    top: 0;
    width: 24px;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    flex-shrink: 0;
}

.ef-fotograf-scroll {
    display: flex;
    gap: 10px;
    min-width: min-content;
}

.ef-fotograf-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 132px;
    width: 132px;
    padding: 14px 10px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #c5ccd6;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ef-fotograf-card[hidden] {
    display: none !important;
}

.ef-fotograf-card:hover {
    transform: translateY(-2px);
    border-color: rgba(225, 29, 46, 0.28);
    background: rgba(255, 255, 255, 0.05);
    color: #f0f2f5;
}

.ef-fotograf-card.is-active {
    border-color: rgba(225, 29, 46, 0.55);
    background: linear-gradient(180deg, rgba(225, 29, 46, 0.18), rgba(225, 29, 46, 0.05));
    color: #fff;
    box-shadow: 0 0 0 1px rgba(225, 29, 46, 0.18), 0 10px 28px rgba(0, 0, 0, 0.28);
}

.ef-fotograf-card__avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f4f6;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ef-fotograf-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #f3f4f6;
}

.ef-fotograf-card__initial {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: hsl(var(--ef-avatar-hue, 0), 48%, 42%);
}

.ef-fotograf-card__avatar--all {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
    color: #d1d5db;
    font-size: 18px;
}

.ef-fotograf-card.is-active .ef-fotograf-card__avatar {
    border-color: rgba(255, 143, 152, 0.75);
    box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.18), 0 6px 18px rgba(225, 29, 46, 0.22);
}

.ef-fotograf-card.is-active .ef-fotograf-card__avatar--all {
    background: linear-gradient(135deg, #e11d2e, #9f1420);
    color: #fff;
}

.ef-fotograf-card__name {
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ef-fotograf-card__count {
    font-size: 11px;
    font-weight: 500;
    color: #7a8494;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
}

.ef-fotograf-card.is-active .ef-fotograf-card__count {
    color: #ffd4d8;
    background: rgba(0, 0, 0, 0.24);
}

.ef-fotograf-picker__empty {
    margin: 10px 0 0;
    text-align: center;
    font-size: 12px;
    color: #7a8494;
}

.ef-fotograf-picker__empty[hidden] {
    display: none !important;
}

@media (min-width: 900px) {
    .ef-fotograf-scroll-wrap {
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .ef-fotograf-scroll {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
        gap: 12px;
        min-width: 0;
        width: 100%;
    }

    .ef-fotograf-card {
        flex: initial;
        width: auto;
    }

    .ef-fotograf-picker__nav {
        display: none !important;
    }
}

.event-fotos-field label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7380;
    margin-bottom: 8px;
}

.event-fotos-field label i {
    color: #e11d2e;
    font-size: 10px;
}

.event-fotos-select-wrap {
    position: relative;
}

.event-fotos-select-wrap::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    border-radius: 9px;
    background-color: rgba(255, 255, 255, 0.05);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23c5ccd6' d='M2.25 4.25 6 7.75l3.75-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.event-fotos-field select.event-fotos-control,
.event-fotos-field input.event-fotos-control {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(6, 7, 8, 0.72);
    color: #e8ebf0;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.35;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.event-fotos-field select.event-fotos-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 52px;
    cursor: pointer;
    background-image: none;
}

.event-fotos-field input.event-fotos-control::placeholder {
    color: #6b7380;
}

.event-fotos-field select.event-fotos-control:hover,
.event-fotos-field input.event-fotos-control:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(10, 12, 16, 0.88);
}

.event-fotos-field select.event-fotos-control:focus,
.event-fotos-field input.event-fotos-control:focus {
    outline: none;
    border-color: rgba(225, 29, 46, 0.5);
    box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.12);
    background: rgba(10, 12, 16, 0.92);
}

.event-fotos-select-wrap:focus-within::after {
    background-color: rgba(225, 29, 46, 0.14);
    border-color: rgba(225, 29, 46, 0.28);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ff8f98' d='M2.25 4.25 6 7.75l3.75-3.5'/%3E%3C/svg%3E");
}

.event-fotos-field select.event-fotos-control.has-value,
.event-fotos-field input.event-fotos-control.has-value {
    border-color: rgba(225, 29, 46, 0.32);
    background: linear-gradient(180deg, rgba(225, 29, 46, 0.1), rgba(6, 7, 8, 0.78));
    color: #fff;
}

.event-fotos-select-wrap:has(select.has-value)::after {
    background-color: rgba(225, 29, 46, 0.2);
    border-color: rgba(225, 29, 46, 0.35);
}

.event-fotos-field select.event-fotos-control option {
    background: #12151a;
    color: #f0f2f5;
    padding: 8px;
}

.event-fotos-field select.event-fotos-control option:checked {
    background: #2a1216;
    color: #fff;
}

.event-fotos-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.event-fotos-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.event-fotos-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(225, 29, 46, 0.12);
    border: 1px solid rgba(225, 29, 46, 0.22);
    font-size: 12px;
    color: #9aa3b2;
}

.empty-gallery {
    text-align: center;
    padding: 80px 20px;
    background: rgba(18,20,24,0.4);
    border-radius: 20px;
    margin: 40px 0;
}

.empty-gallery--compact {
    padding: 56px 20px;
    margin: 0 0 40px;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
    color: #6b7380;
}

.empty-icon i {
    display: block;
}

.meta-location i,
.meta-date i,
.stats-count i {
    margin-right: 6px;
    color: #e11d2e;
    font-size: 0.9em;
}

.btn-back i {
    margin-right: 6px;
}

.empty-gallery h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.empty-gallery p {
    color: #7a8494;
    margin-bottom: 24px;
}

.btn-upload {
    background: #e30613;
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 30px;
    display: inline-block;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.gallery-item {
    background: rgba(18, 20, 24, 0.5);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid rgba(255,255,255,0.05);
}

.gallery-item:hover {
    transform: translateY(-4px);
    border-color: rgba(227,6,19,0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.image-wrapper {
    position: relative;
    overflow: hidden;
}

.image-wrapper.photo-thumb {
    aspect-ratio: auto;
    min-height: 200px;
    max-height: 280px;
    background: #080808;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.gallery-item:hover .image-wrapper img {
    transform: scale(1.03);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 12px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .image-overlay {
    opacity: 1;
}

.overlay-info {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.overlay-views,
.overlay-downloads {
    font-size: 12px;
    color: white;
}

.item-info {
    padding: 14px;
}

.car-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    gap: 8px;
}

.car-make {
    font-size: 15px;
    font-weight: 600;
    color: white;
}

.car-color {
    font-size: 11px;
    background: rgba(255,255,255,0.08);
    padding: 2px 8px;
    border-radius: 20px;
    color: #9aa4b2;
}

.photographer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.photographer-icon {
    font-size: 12px;
    color: #6b7684;
}

.photographer a {
    font-size: 12px;
    color: #9aa4b2;
    text-decoration: none;
    transition: color 0.2s;
}

.photographer a:hover {
    color: #e30613;
}

.license-plate {
    font-size: 11px;
    color: #e30613;
    background: rgba(227,6,19,0.1);
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
}

.gallery-footer {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-bottom: 40px;
}

.btn-back {
    display: inline-block;
    background: rgba(255,255,255,0.08);
    color: #9aa4b2;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-back:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

@media (max-width: 1200px) {
    .event-fotos-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .event-fotos-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .gallery-page {
        padding-left: max(12px, env(safe-area-inset-left));
        padding-right: max(12px, env(safe-area-inset-right));
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .event-header {
        padding: 20px 16px;
        margin-bottom: 20px;
        border-radius: 16px;
    }

    .event-header h1 {
        font-size: 22px;
        line-height: 1.25;
    }

    .event-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }

    .event-stats {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .stats-count {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    .event-fotos-toolbar {
        padding: 14px 12px;
        margin-bottom: 20px;
        border-radius: 14px;
    }

    .ef-fotograf-filter {
        padding: 14px 12px 12px;
        margin-bottom: 14px;
        border-radius: 14px;
    }

    .ef-fotograf-filter__head {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 12px;
    }

    .ef-fotograf-filter__meta {
        align-self: flex-start;
    }

    .ef-fotograf-filter__label {
        font-size: 14px;
    }

    .ef-fotograf-search {
        margin-bottom: 12px;
    }

    .ef-fotograf-search__icon {
        left: 16px;
        font-size: 14px;
    }

    .ef-fotograf-search__input {
        font-size: 16px !important;
        min-height: 48px;
        padding: 12px 48px 12px 42px !important;
    }

    .ef-fotograf-search__clear {
        right: 10px;
        width: 36px;
        height: 36px;
    }

    .ef-fotograf-scroll-wrap {
        margin: 0 -2px;
        padding: 2px 2px 6px;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    .ef-fotograf-scroll {
        gap: 10px;
        scroll-snap-type: x proximity;
    }

    .ef-fotograf-card {
        flex: 0 0 118px;
        width: 118px;
        padding: 12px 8px 10px;
        scroll-snap-align: start;
        -webkit-tap-highlight-color: transparent;
    }

    .ef-fotograf-card:hover {
        transform: none;
    }

    .ef-fotograf-card:active {
        transform: scale(0.98);
    }

    .ef-fotograf-card__avatar {
        width: 48px;
        height: 48px;
    }

    .ef-fotograf-card__name {
        font-size: 12px;
    }

    .ef-fotograf-picker__arrow {
        width: 36px;
        height: 36px;
    }

    .event-fotos-filter-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .event-fotos-field label {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .event-fotos-filters {
        padding: 14px 12px;
        border-radius: 14px;
    }

    .event-fotos-filters__head {
        margin-bottom: 14px;
    }

    .event-fotos-field select.event-fotos-control,
    .event-fotos-field input.event-fotos-control {
        font-size: 16px;
        min-height: 50px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .event-fotos-select-wrap::after {
        width: 34px;
        height: 34px;
        right: 8px;
    }

    .event-fotos-filter-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 0;
        padding-top: 12px;
    }

    .event-fotos-filter-actions .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
    }

    .event-fotos-pills {
        gap: 6px;
    }

    .event-fotos-pill {
        font-size: 11px;
        padding: 8px 12px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 28px;
    }

    .gallery-item {
        -webkit-tap-highlight-color: transparent;
    }

    .gallery-item:hover {
        transform: none;
        box-shadow: none;
    }

    .gallery-item:active {
        transform: scale(0.985);
        border-color: rgba(227, 6, 19, 0.25);
    }

    .image-wrapper.photo-thumb {
        min-height: 180px;
        max-height: 240px;
    }

    .image-overlay {
        opacity: 1;
        padding: 10px 12px;
    }

    .gallery-item:hover .image-overlay {
        opacity: 1;
    }

    .item-info {
        padding: 12px 14px 14px;
    }

    .car-details {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .empty-gallery {
        padding: 40px 16px;
        margin: 24px 0;
        border-radius: 16px;
    }

    .empty-gallery--compact {
        padding: 36px 16px;
    }

    .gallery-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: max(32px, env(safe-area-inset-bottom));
    }

    .gallery-footer .btn-back {
        width: 100%;
        text-align: center;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (hover: none) and (pointer: coarse) {
    .gallery-item:hover .image-wrapper img {
        transform: none;
    }

    .gallery-item .image-overlay {
        opacity: 1;
    }
}

.event-gallery-lock {
    text-align: center;
    padding: 36px 24px;
    margin-bottom: 24px;
    border-radius: 18px;
    border: 1px solid rgba(225, 29, 46, 0.25);
    background: linear-gradient(135deg, rgba(225, 29, 46, 0.1), rgba(6, 7, 8, 0.5));
}
.event-gallery-lock-icon { font-size: 2rem; color: #e11d2e; margin-bottom: 12px; }
.event-gallery-lock h2 { margin: 0 0 8px; font-size: 1.35rem; }
.event-gallery-lock p { margin: 0 0 20px; color: #9aa3b2; }
.event-gallery-countdown { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.event-gallery-countdown-unit {
    min-width: 72px;
    padding: 12px 10px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.event-gallery-countdown-value {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
}
.event-gallery-countdown-label {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9aa3b2;
}
.event-gallery-lock-note {
    text-align: center;
    color: #9aa3b2;
    font-size: 14px;
    margin: 0 0 32px;
}

/* —— Galerie live / Credits / Follow —— */
.event-gallery-live {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding: 20px 22px;
    border-radius: 18px;
    border: 1px solid rgba(34, 197, 94, 0.28);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 18, 22, 0.72));
}

.event-gallery-live__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #86efac;
}

.event-gallery-live__badge i {
    font-size: 8px;
    animation: event-gallery-live-pulse 1.6s ease-in-out infinite;
}

@keyframes event-gallery-live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.event-gallery-live__title {
    margin: 0 0 10px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.event-gallery-live__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin: 0 0 10px;
    font-size: 14px;
    color: #d1d5db;
}

.event-gallery-live__stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.event-gallery-live__recent {
    color: #fde68a;
}

.event-gallery-live__lead {
    margin: 0;
    max-width: 560px;
    font-size: 14px;
    color: #9aa4b2;
    line-height: 1.5;
}

.event-gallery-live__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.gallery-item .image-wrapper {
    position: relative;
}

.gallery-item-new-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(227, 6, 19, 0.92);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

@media (max-width: 640px) {
    .event-gallery-live {
        padding: 16px;
    }

    .event-gallery-live__actions {
        width: 100%;
    }

    .event-gallery-live__actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}
