.report-gallery-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    border: 1px solid #22c55e;
    padding: 1rem;
    margin: 1rem 0;
}

/* Remove border for merchandise galleries */
.merch-section-container .report-gallery-container {
    border: none;
    padding: 0;
}

.report-gallery-scroller {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    width: max-content;
    animation: scrollGallery linear infinite;
    animation-duration: calc(var(--scroll-speed) * 1s);
}

.gallery-item {
    flex: 0 0 200px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.gallery-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.5rem)); }
}

.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

.gallery-lightbox.active {
    display: flex;
}

.monitor-frame {
    position: relative;
    background: #1a1a1a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 
        inset 0 0 20px rgba(85, 255, 85, 0.2),
        0 0 0 2px #333,
        0 0 0 4px #000,
        0 0 20px rgba(0, 0, 0, 0.5);
}

.monitor-screen {
    position: relative;
    overflow: hidden;
    border: 2px solid #444;
    background: #000;
}

.monitor-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        rgba(85, 255, 85, 0.1) 50%, 
        rgba(0, 0, 0, 0.1) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.5;
}

.monitor-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        transparent 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    pointer-events: none;
}

.gallery-lightbox img {
    display: block;
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
}

.gallery-lightbox .close-button {
    position: absolute;
    top: -30px;
    right: -30px;
    background: #333;
    border: 2px solid #22c55e;
    color: #22c55e;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: monospace;
    text-shadow: 0 0 5px #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.gallery-lightbox .close-button:hover {
    background: #444;
    text-shadow: 0 0 10px #22c55e;
}

@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
    100% { transform: translate(0); }
}

@keyframes shelfScan {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(100%);
        opacity: 0;
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.merch-display-section {
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 1.5rem;
    position: relative;
}

.merch-section-title {
    color: #22c55e;
    font-size: 0.9em;
    text-transform: uppercase;
    margin: 0 0 1.5rem 0;
    font-family: monospace;
    letter-spacing: 0.05em;
}

.merch-dash {
    color: #22c55e;
    opacity: 0.7;
}

.merch-description {
    color: #ffff55;
}

.digital-shelf {
    position: relative;
    padding-bottom: 2rem;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.digital-shelf .report-gallery-container {
    border: none;
    background: rgba(34, 197, 94, 0.05);
    box-shadow: 
        0 10px 20px -5px rgba(34, 197, 94, 0.1),
        0 0 0 1px rgba(34, 197, 94, 0.2);
    transform: rotateX(5deg);
    padding: 1rem;
}

.shelf-edge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(
        to bottom,
        rgba(34, 197, 94, 0.2),
        rgba(34, 197, 94, 0.05)
    );
    transform: rotateX(45deg);
    transform-origin: top;
}

.merch-item {
    position: relative;
    transition: transform 0.3s ease;
}

.merch-item:hover {
    transform: scale(1.05) translateY(-5px);
    z-index: 1;
}

.merch-item img {
    border: 1px solid rgba(34, 197, 94, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item img {
    will-change: transform;
    transform: translateZ(0);
}

.digital-shelf:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(34, 197, 94, 0.3),
        transparent
    );
}

.retro-monitor {
    position: relative;
    padding-bottom: 20px;
}

.retro-monitor:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
    opacity: 0.5;
}

.monitor-frame:before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    pointer-events: none;
}

.merch-section {
    margin: 1rem 0 5rem 0;  /* Increased bottom margin to clear footer */
}

.matrix-display {
    position: relative;
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.05), rgba(0, 0, 0, 0.3));
    margin-bottom: 3rem;  /* Add extra space between sections */
}