
.media-gallery-section {
    padding: var(--section-padding);
    position: relative;
}

.media-gallery-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.media-gallery-section .section-header {
    text-align: center;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.media-gallery-section .section-header h2 {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #fff;
    margin-bottom: 16px;
    position: relative;
}
html.rc-light .media-gallery-section .section-header h2 {
    color: var(--text-primary);
}

.media-gallery-section .section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-warm);
    border-radius: 2px;
}

.media-gallery-section .section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.gallery-filters {
    display: flex;
    gap: 2px;
    width: fit-content;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto 28px;
    padding: 4px;
    background: rgba(233, 185, 73, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    position: relative;
    z-index: 2;
}

.gallery-filters[hidden] {
    display: none;
}

.gallery-filter {
    padding: 6px 16px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease;
}

.gallery-filter:hover {
    color: var(--accent-gold);
}

.gallery-filter.active {
    background: var(--gradient-warm);
    color: #fff;
    box-shadow: 0 2px 10px rgba(233, 185, 73, 0.25);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 16px;
    margin-bottom: 28px;
    position: relative;
    z-index: 2;
}

.gallery-item {
    --parallax-x: 0px;
    --parallax-y: 0px;
    --hover-scale: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition-smooth);
    position: relative;
    aspect-ratio: 16/10;
    cursor: pointer;
    transform: translateZ(0);
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.gallery-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-warm);
    z-index: 3;
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.gallery-item:hover::before {
    transform: scaleX(1);
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35),
        0 0 30px rgba(233, 185, 73, 0.15),
        0 0 60px rgba(233, 185, 73, 0.08);
    border-color: rgba(233, 185, 73, 0.4);
}

.gallery-item.filtering {
    animation: filterOut 0.3s ease-in forwards;
}

.gallery-item.filtering.show {
    animation: filterIn 0.4s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes filterOut {
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes filterIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gallery-thumbnail {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 2;
    pointer-events: none;
}

.gallery-caption-title {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-caption-venue {
    font-size: 11px;
    color: var(--accent-gold-light, #f7d888);
    font-weight: 400;
}

.gallery-thumbnail img,
.gallery-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate3d(var(--parallax-x), var(--parallax-y), 0) scale(var(--hover-scale));
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease, object-position 0.9s ease;
    filter: brightness(0.9) contrast(1.1);
    will-change: transform, filter, object-position;
}

.gallery-item:hover .gallery-thumbnail img,
.gallery-item:hover .gallery-thumbnail video {
    --hover-scale: 1.13;
    filter: brightness(1) contrast(1.2);
}

.gallery-item:hover .gallery-thumbnail img {
    animation: gallery-kenburns-drift 9s ease-in-out infinite alternate;
}

@keyframes gallery-kenburns-drift {
    from { object-position: var(--rc-pos-from, 50% 50%); }
    to { object-position: var(--rc-pos-to, 53% 47%); }
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, rgba(184, 134, 11, 0.5) 0%, rgba(233, 185, 73, 0.32) 50%, rgba(247, 216, 136, 0.18) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    isolation: isolate;
}

.gallery-overlay::before {
    content: "";
    position: absolute;
    inset: -22%;
    background:
        radial-gradient(circle at 26% 24%, rgba(247, 216, 136, 0.3) 0%, rgba(247, 216, 136, 0) 32%),
        radial-gradient(circle at 72% 78%, rgba(233, 185, 73, 0.24) 0%, rgba(233, 185, 73, 0) 28%);
    opacity: 0;
    transform: translate3d(-10%, 12%, 0) scale(1.2);
    transition: opacity 0.55s ease, transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 0;
}

.gallery-overlay i {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 6px 14px rgba(4, 14, 34, 0.48);
    transform: translateY(8px) scale(0.94);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.gallery-item:hover .gallery-overlay::before {
    opacity: 1;
    transform: translate3d(7%, -8%, 0) scale(1);
}

.gallery-item:hover .gallery-overlay i {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-play-icon {
    color: white;
    font-size: 48px;
    animation: pulse-scale 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes pulse-scale {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.9;
    }
    50% { 
        transform: scale(1.1);
        opacity: 1;
    }
}

.gallery-info {
    padding: 20px;
    height: 20%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.gallery-title {
    font-size: 12px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.gallery-category {
    background: var(--gradient-warm);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gallery-date {
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
}

.gallery-type-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    border-radius: 50%;
    backdrop-filter: var(--blur);
    z-index: 2;
    font-size: 14px;
}

.gallery-skeleton {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    position: relative;
}

.gallery-skeleton::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.skeleton-thumbnail {
    width: 100%;
    height: 60%;
    background: var(--border-color);
}

.skeleton-info {
    padding: 20px;
    height: 40%;
}

.skeleton-title,
.skeleton-meta {
    background: var(--border-color);
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 20px;
    width: 80%;
}

.skeleton-meta {
    height: 14px;
    width: 60%;
}

.load-more-container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--gradient-warm);
    border: none;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(233, 185, 73, 0.25);
    position: relative;
    overflow: hidden;
}

.load-more-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-smooth);
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(233, 185, 73, 0.35);
}

.load-more-btn.loading {
    pointer-events: none;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lightbox-modal {
    --lb-open-start-x: 0px;
    --lb-open-start-y: 92px;
    --lb-open-start-scale-x: 0.9;
    --lb-open-start-scale-y: 0.88;
    --lb-close-end-x: 0px;
    --lb-close-end-y: 102px;
    --lb-close-end-scale-x: 0.9;
    --lb-close-end-scale-y: 0.88;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3000;
    display: none;
    opacity: 0;
    transition: var(--transition-smooth);
}

.lightbox-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 72%, rgba(233, 185, 73, 0.1) 0%, rgba(40, 30, 10, 0.62) 45%, rgba(5, 5, 3, 0.9) 100%);
    backdrop-filter: var(--blur);
}
html.rc-lite .lightbox-overlay {
    background: radial-gradient(circle at 50% 72%, rgba(28, 22, 8, 0.88) 0%, rgba(12, 10, 4, 0.93) 45%, rgba(5, 5, 3, 0.97) 100%);
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-3d);
    border: 1px solid var(--border-color);
    transform-origin: 50% 100%;
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
}

@keyframes lightboxAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lightbox-container::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(233, 185, 73, 0) 0%, rgba(233, 185, 73, 0.1) 52%, rgba(184, 134, 11, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.48s ease;
}

.lightbox-modal.opening .lightbox-overlay {
    animation: lightboxOverlayWaterIn 0.82s ease both;
}

.lightbox-modal.opening .lightbox-container {
    animation: lightboxWaterRise 0.82s cubic-bezier(0.2, 0.85, 0.25, 1) both;
}

.lightbox-modal.closing .lightbox-container {
    animation: lightboxWaterSink 0.82s cubic-bezier(0.22, 0.74, 0.2, 1) both;
}

.lightbox-modal.opening .lightbox-container::after,
.lightbox-modal.closing .lightbox-container::after {
    opacity: 1;
}

.lightbox-modal.closing .lightbox-overlay {
    animation: lightboxOverlayFadeOut 0.82s ease both;
}

@keyframes lightboxWaterRise {
    0% {
        opacity: 0.24;
        transform: translate3d(var(--lb-open-start-x), calc(var(--lb-open-start-y) + 38px), 0) scale(var(--lb-open-start-scale-x), var(--lb-open-start-scale-y));
        filter: blur(8px) saturate(0.86);
    }
    52% {
        opacity: 1;
        transform: translate3d(calc(var(--lb-open-start-x) * 0.1), -10px, 0) scale(1.015);
        filter: blur(0) saturate(1.04);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1, 1);
        filter: blur(0) saturate(1);
    }
}

@keyframes lightboxWaterSink {
    0% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1, 1);
        filter: blur(0) saturate(1);
    }
    14% {
        opacity: 1;
        transform: translate3d(calc(var(--lb-close-end-x) * -0.02), -8px, 0) scale(1.012, 1.012);
        filter: blur(0) saturate(1.03);
    }
    72% {
        opacity: 1;
        transform: translate3d(calc(var(--lb-close-end-x) * 0.9), calc(var(--lb-close-end-y) * 0.9), 0) scale(calc((var(--lb-close-end-scale-x) * 0.86) + 0.14), calc((var(--lb-close-end-scale-y) * 0.86) + 0.14));
        filter: blur(0.8px) saturate(0.96);
    }
    90% {
        opacity: 0.95;
        transform: translate3d(var(--lb-close-end-x), calc(var(--lb-close-end-y) + 26px), 0) scale(calc(var(--lb-close-end-scale-x) * 0.96), calc(var(--lb-close-end-scale-y) * 0.96));
        filter: blur(2.2px) saturate(0.9);
    }
    100% {
        opacity: 0;
        transform: translate3d(var(--lb-close-end-x), var(--lb-close-end-y), 0) scale(var(--lb-close-end-scale-x), var(--lb-close-end-scale-y));
        filter: blur(5px) saturate(0.86);
    }
}

@keyframes lightboxOverlayWaterIn {
    0% {
        opacity: 0;
        background: radial-gradient(circle at 50% 72%, rgba(233, 185, 73, 0.05) 0%, rgba(20, 15, 5, 0.18) 60%, rgba(5, 5, 3, 0.2) 100%);
    }
    45% {
        opacity: 1;
        background: radial-gradient(circle at 50% 72%, rgba(233, 185, 73, 0.2) 0%, rgba(50, 38, 12, 0.56) 48%, rgba(8, 6, 3, 0.84) 100%);
    }
    100% {
        opacity: 1;
        background: radial-gradient(circle at 50% 72%, rgba(233, 185, 73, 0.1) 0%, rgba(40, 30, 10, 0.62) 45%, rgba(5, 5, 3, 0.9) 100%);
    }
}

@keyframes lightboxOverlayFadeOut {
    0% {
        opacity: 1;
        background: radial-gradient(circle at 50% 72%, rgba(233, 185, 73, 0.1) 0%, rgba(40, 30, 10, 0.62) 45%, rgba(5, 5, 3, 0.9) 100%);
    }
    45% {
        opacity: 1;
        background: radial-gradient(circle at 50% 72%, rgba(247, 216, 136, 0.2) 0%, rgba(60, 45, 15, 0.62) 45%, rgba(8, 6, 3, 0.72) 100%);
    }
    100% {
        opacity: 0;
        background: radial-gradient(circle at 50% 72%, rgba(233, 185, 73, 0) 0%, rgba(20, 15, 5, 0) 100%);
    }
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(233, 185, 73, 0.32);
    color: var(--accent-gold-light, #f7d888);
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 10px rgba(233, 185, 73, 0.14);
    transition: var(--transition-fast);
    z-index: 3001;
    backdrop-filter: var(--blur);
    font-size: 16px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(233, 185, 73, 0.7);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3001;
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 16px;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(233, 185, 73, 0.32);
    color: var(--accent-gold-light, #f7d888);
    padding: 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: var(--blur);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 10px rgba(233, 185, 73, 0.14);
    font-size: 18px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(233, 185, 73, 0.7);
    transform: scale(1.1);
}

.lightbox-content {
    width: 80vw;
    height: 60vh;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(85% 60% at 50% -10%, rgba(36, 86, 214, 0.22) 0%, transparent 60%),
        radial-gradient(70% 70% at 100% 110%, rgba(233, 185, 73, 0.16) 0%, transparent 55%),
        linear-gradient(160deg, var(--card-bg-hover) 0%, var(--card-bg) 58%, var(--darker-bg) 100%);
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
}

.lightbox-info {
    padding: 24px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.lightbox-info h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.lightbox-info p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.lightbox-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.lightbox-credit {
    margin: 10px 0 0;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.lightbox-credit[hidden] {
    display: none;
}

.lightbox-credit a {
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.lightbox-credit a:hover,
.lightbox-credit a:focus-visible {
    color: var(--accent-gold-light);
    border-bottom-color: currentColor;
}

.lightbox-counter {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: var(--blur);
}

.lightbox-actions {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3001;
    display: flex;
    gap: 8px;
}

.lightbox-action {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(233, 185, 73, 0.32);
    background: rgba(0, 0, 0, 0.7);
    color: var(--accent-gold-light, #f7d888);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: var(--blur);
    transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 10px rgba(233, 185, 73, 0.14);
}

.lightbox-action:hover {
    background: rgba(233, 185, 73, 0.75);
    transform: scale(1.08);
}

.lightbox-action:focus-visible {
    outline: 2px solid var(--accent-gold, #e9b949);
    outline-offset: 2px;
}

.lightbox-action.is-playing {
    background: var(--gradient-warm);
    color: #10141d;
}

.lightbox-action.copied::after {
    content: "Link copied";
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    background: var(--gradient-warm);
    color: #10141d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 4px 10px;
    border-radius: 999px;
    pointer-events: none;
}

.lightbox-content img {
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.lightbox-content.is-zoomed {
    cursor: grab;
    touch-action: none;
}

.lightbox-content.is-panning {
    cursor: grabbing;
}

.lightbox-content.is-panning img {
    transition: none;
}

.lightbox-filmstrip {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 84px;
    z-index: 3001;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    background: linear-gradient(180deg, rgba(5, 7, 12, 0) 0%, rgba(5, 7, 12, 0.75) 42%, rgba(5, 7, 12, 0.92) 100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(233, 185, 73, 0.5) transparent;
}

.lightbox-filmstrip:empty {
    display: none;
}

.lightbox-thumb {
    flex: 0 0 auto;
    width: 82px;
    height: 56px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--card-bg);
    opacity: 0.55;
    transition: opacity 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

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

.lightbox-thumb:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.lightbox-thumb.is-active {
    opacity: 1;
    border-color: var(--accent-gold);
}

.lightbox-modal.show {
    padding-bottom: 96px;
}

.lightbox-container {
    max-height: 78vh;
}

@media (max-width: 768px) {
    .lightbox-actions {
        top: 12px;
        left: 12px;
    }
    .lightbox-action {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    .lightbox-filmstrip {
        height: 68px;
        padding: 8px 10px;
    }
    .lightbox-thumb {
        width: 66px;
        height: 44px;
    }
    .lightbox-modal.show {
        padding-bottom: 78px;
    }
    .lightbox-container {
        max-height: 74vh;
    }
    .lightbox-counter {
        bottom: auto;
        top: 12px;
        left: auto;
        right: 56px;
        transform: none;
    }
}

.loading-message,
.no-images-message {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
    background: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.loading-spinner-large {
    font-size: 48px;
    color: var(--accent-gold, #e9b949);
    margin-bottom: 24px;
    animation: spin 1s linear infinite;
}

.loading-message h3,
.no-images-message h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.loading-message p,
.no-images-message p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 16px;
}

.no-images-message i {
    font-size: 64px;
    color: var(--text-muted);
    margin-bottom: 24px;
    opacity: 0.6;
}

.supported-formats {
    background: var(--darker-bg);
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.supported-formats code {
    color: var(--accent-gold, #e9b949);
    font-family: 'Courier New', monospace;
    font-weight: 600;
}
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .media-gallery-section {
        padding: 60px 0;
    }

    .media-gallery-section .section-header {
        margin-bottom: 36px;
    }

    .container {
        padding: 0 16px;
    }
    
    .gallery-filters {
        margin-bottom: 20px;
    }

    .gallery-filter {
        padding: 11px 18px;
        font-size: 12px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .lightbox-content {
        width: 95vw;
        height: 50vh;
    }
    
    .lightbox-info {
        padding: 16px;
    }
    
    .lightbox-nav {
        padding: 0 8px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item {
        aspect-ratio: 4/3;
    }

    .gallery-caption {
        padding: 8px 10px;
    }

    .gallery-caption-title {
        font-size: 11px;
    }

    .gallery-caption-venue {
        font-size: 10px;
    }

    .lightbox-content {
        width: 98vw;
        height: 40vh;
    }
    
    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

.photo-credit {
    font-size: 0.75em;
    color: #666;
    font-style: italic;
    display: block;
    margin-top: 0.25rem;
    opacity: 0.8;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.gallery-item:focus {
    outline: 2px solid var(--accent-gold, #e9b949);
    outline-offset: 2px;
    transform: translateY(-2px);
}

.gallery-item:focus-visible {
    outline: 2px solid var(--accent-gold, #e9b949);
    outline-offset: 2px;
}

.lightbox-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2em;
    color: #fff;
    line-height: 1.4;
}

.lightbox-info p {
    margin: 0 0 0.75rem 0;
    color: #ccc;
    line-height: 1.4;
    font-size: 0.95em;
}

.lightbox-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.lightbox-meta span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.85em;
    color: #fff;
    backdrop-filter: blur(10px);
}

.gallery-item img {
    transition: opacity 0.3s ease;
}

.gallery-item img[data-src] {
    opacity: 0.5;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.load-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.load-more-btn:focus {
    outline: 2px solid var(--accent-gold, #e9b949);
    outline-offset: 2px;
}

.lightbox-prev,
.lightbox-next {
    transition: background 0.3s ease, transform 0.3s ease, outline 0.3s ease, outline-offset 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(233, 185, 73, 0.5);
    transform: scale(1.1);
}

.lightbox-prev:focus,
.lightbox-next:focus {
    outline: 2px solid var(--accent-gold, #e9b949);
    outline-offset: 2px;
}

.lightbox-close:hover {
    background: rgba(233, 185, 73, 0.5);
    transform: scale(1.1);
}

.lightbox-close:focus {
    outline: 2px solid var(--accent-gold, #e9b949);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .lightbox-info h3 {
        font-size: 1.1em;
    }
    
    .lightbox-info p {
        font-size: 0.9em;
    }
    
    .lightbox-meta {
        gap: 0.5rem;
    }
    
    .lightbox-meta span {
        font-size: 0.8em;
        padding: 0.2rem 0.4rem;
    }
    
    .photo-credit {
        font-size: 0.7em;
    }
}

@media (prefers-contrast: high) {
    .gallery-item:focus {
        outline: 3px solid #000;
        background: #fff;
    }
    
    .lightbox-info h3 {
        color: #fff;
        text-shadow: 1px 1px 2px #000;
    }
    
    .lightbox-info p {
        color: #fff;
        text-shadow: 1px 1px 2px #000;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-item {
        transition: none;
    }
    
    .gallery-item img {
        transition: none;
    }
    
    .lightbox-prev,
    .lightbox-next,
    .lightbox-close {
        transition: none;
    }
    
    .load-more-btn {
        transition: none;
    }

    .gallery-item:hover .gallery-thumbnail img {
        animation: none;
    }

    .lightbox-modal.opening .lightbox-container,
    .lightbox-modal.opening .lightbox-overlay,
    .lightbox-modal.closing .lightbox-container,
    .lightbox-modal.closing .lightbox-overlay {
        animation: none;
    }
}

.gallery-pager {
    position: relative;
    z-index: 2;
}

.gallery-pager .gallery-grid {
    margin-bottom: 28px;
}

.gallery-page-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(233, 185, 73, 0.35);
    background: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.gallery-page-prev {
    left: 10px;
}

.gallery-page-next {
    right: 10px;
}

@media (min-width: 1400px) {
    .gallery-page-prev {
        left: -68px;
    }

    .gallery-page-next {
        right: -68px;
    }
}

.gallery-page-btn:hover:not(:disabled) {
    background: rgba(233, 185, 73, 0.75);
    border-color: rgba(233, 185, 73, 0.8);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 26px rgba(233, 185, 73, 0.3);
}

.gallery-page-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.gallery-page-btn:focus-visible {
    outline: 2px solid var(--accent-gold, #e9b949);
    outline-offset: 2px;
}

.gallery-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.gallery-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gallery-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1px solid rgba(233, 185, 73, 0.5);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-dot:hover {
    background: rgba(233, 185, 73, 0.4);
    transform: scale(1.2);
}

.gallery-dot.is-active {
    background: var(--accent-gold, #e9b949);
    border-color: var(--accent-gold, #e9b949);
    box-shadow: 0 0 10px rgba(233, 185, 73, 0.5);
}

.gallery-page-counter {
    font-size: 13px;
    color: var(--accent-gold-light, #f7d888);
    letter-spacing: 0.08em;
}

.gallery-grid[data-slide="next"] .gallery-item {
    animation-name: gallerySlideInRight;
}

.gallery-grid[data-slide="prev"] .gallery-item {
    animation-name: gallerySlideInLeft;
}

@keyframes gallerySlideInRight {
    from {
        opacity: 0;
        transform: translateX(70px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes gallerySlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-70px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@media (max-width: 768px) {
    .gallery-page-btn {
        width: 44px;
        height: 44px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-page-btn,
    .gallery-dot {
        transition: none;
    }

    .gallery-grid[data-slide="next"] .gallery-item,
    .gallery-grid[data-slide="prev"] .gallery-item {
        animation-name: fadeInUp;
        animation-duration: 0.01s;
    }
}

.gallery-grid {
    scroll-margin-top: 90px;
}

.gallery-inline-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(233, 185, 73, 0.35);
    background: rgba(10, 10, 12, 0.72);
    color: #fff;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease, outline 0.3s ease, outline-offset 0.3s ease;
    flex-shrink: 0;
}

.gallery-inline-btn[hidden] {
    display: none !important;
}

.gallery-inline-btn:hover:not(:disabled) {
    background: rgba(233, 185, 73, 0.75);
    border-color: rgba(233, 185, 73, 0.8);
}

.gallery-inline-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

.gallery-inline-btn:focus-visible {
    outline: 2px solid var(--accent-gold, #e9b949);
    outline-offset: 2px;
}

.gallery-dot {
    position: relative;
}

.gallery-dot::after {
    content: '';
    position: absolute;
    inset: -9px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .gallery-page-btn {
        display: none;
    }

    .gallery-inline-btn {
        display: flex;
    }

    .gallery-pagination {
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 0;
    }

    .gallery-page-counter {
        flex-basis: 100%;
        text-align: center;
    }

    .gallery-dots {
        flex: 1 1 0;
        min-width: 0;
        gap: 9px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery-dot {
        width: 11px;
        height: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-inline-btn {
        transition: none;
    }
}

html.rc-light .gallery-caption-venue {
    color: #f7d888;
}
html.rc-light .lightbox-thumb.is-active {
    border-color: #e9b949;
}
html.rc-light .lightbox-action:focus-visible,
html.rc-light .lightbox-close:focus,
html.rc-light .lightbox-prev:focus,
html.rc-light .lightbox-next:focus {
    outline-color: #e9b949;
}
html.rc-light .gallery-page-btn {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(161, 98, 7, 0.35);
    color: var(--text-primary);
    box-shadow: 0 6px 18px rgba(20, 24, 40, 0.16);
}

@media (max-width: 640px) {
    .lightbox-modal.show {
        padding: 0 0 176px;
    }
    .lightbox-container {
        max-width: 94vw;
        max-height: 54vh;
        will-change: auto;
    }
    .lightbox-close {
        position: fixed;
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        padding: 10px;
    }
    .lightbox-nav {
        position: fixed;
        top: auto;
        left: 0;
        right: 0;
        bottom: 86px;
        transform: none;
        justify-content: center;
        gap: 170px;
        padding: 0;
    }
    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        padding: 12px;
        font-size: 15px;
    }
    .lightbox-actions {
        position: fixed;
        top: auto;
        left: 50%;
        bottom: 88px;
        transform: translateX(-50%);
        gap: 12px;
    }
    .lightbox-action {
        width: 40px;
        height: 40px;
    }
    .lightbox-counter {
        position: fixed;
        top: 16px;
        left: 12px;
        right: auto;
        bottom: auto;
        transform: none;
        font-size: 11px;
        padding: 6px 12px;
    }
}

html.rc-light .gallery-dot {
    border-color: rgba(30, 58, 138, 0.55);
}
html.rc-light .gallery-dot:hover {
    background: rgba(30, 58, 138, 0.35);
}
html.rc-light .gallery-dot.is-active {
    background: #1e3a8a;
    border-color: #1e3a8a;
    box-shadow: 0 0 10px rgba(30, 58, 138, 0.45);
}
html.rc-light .gallery-page-counter {
    color: #1e3a8a;
}
html.rc-light .gallery-page-btn {
    color: #1e3a8a;
    border-color: rgba(30, 58, 138, 0.4);
}
html.rc-light .gallery-inline-btn {
    color: #1e3a8a;
    border-color: rgba(30, 58, 138, 0.45);
    background: rgba(255, 255, 255, 0.9);
}

html.rc-light .lightbox-info h3 {
    color: var(--text-primary);
}
html.rc-light .lightbox-info p {
    color: var(--text-secondary);
}
html.rc-light .lightbox-info .lightbox-meta span {
    background: rgba(30, 58, 138, 0.12);
    color: #1e3a8a;
}
