.gallerymain {
            background: white;
            font-family: 'Arial', sans-serif;
            overflow-x: hidden;
            padding: 40px 0;
        }

.gallery-container {
            width: 100%;
            overflow: hidden;
            position: relative;
        }

.gallery-row {
            display: flex;
            gap: 20px;
            animation: scroll-horizontal 30s linear infinite;
            margin-bottom: 20px;
        }

.gallery-row:nth-child(even) {
            animation-direction: reverse;
            animation-duration: 35s;
        }

.poster {
            flex-shrink: 0;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
            position: relative;
        }

.poster:hover {
            transform: translateY(-8px) scale(1.05);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
            z-index: 10;
        }

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

        /* Square posters (1:1) */
.poster.square {
            width: 200px;
            height: 200px;
        }

        /* Portrait posters (4:5) */
.poster.portrait {
            width: 160px;
            height: 200px;
        }

.poster-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.8));
            opacity: 0;
            transition: opacity 0.3s ease;
            display: flex;
            align-items: flex-end;
            padding: 16px;
        }

.poster:hover .poster-overlay {
            opacity: 1;
        }

.poster-title {
            color: white;
            font-size: 14px;
            font-weight: 600;
            text-shadow: 0 2px 4px rgba(0,0,0,0.5);
        }

 @keyframes scroll-horizontal {
            0% {
                transform: translateX(100%);
            }
            100% {
                transform: translateX(-100%);
            }
        }

.section-title {
            text-align: center;
            color: #806cdc;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 40px;
            margin-top: 30px;
        }

        /* Responsive design */
@media (max-width: 768px) {
            .poster.square {
                width: 150px;
                height: 150px;
            }
            
            .poster.portrait {
                width: 120px;
                height: 150px;
            }
            
            .gallery-row {
                gap: 15px;
            }
        }
.loader {
  width: 36px;
  aspect-ratio: 1;
  color: #514b82;
  background: conic-gradient( from 134deg at top,currentColor  92deg,#0000 0);
  position: relative;
  animation: l22-0 2s infinite linear;
}
.loader:before,
.loader:after {
  content: "";
  position: absolute;
  width: 50%;
  height: 50%;
  background: currentColor; 
  transform-origin: top right;
  clip-path: polygon(100% 0,100% 100%,0 100%);
  inset: auto 100% 0 auto;
  animation: l22-1 1s infinite linear alternate;
}
.loader:after {
  inset:auto auto 0 100%;
  transform-origin: top left;
  --s:-1;
  clip-path: polygon(0 0,100% 100%,0 100%);
}
@keyframes l22-0 {
 0% ,49.99% {transform:scaleY(1)}
 50%,90%    {transform:scaleY(-1)}
 100%       {transform:scaleY(-1) rotate(180deg)}
}
@keyframes l22-1 {
 0% ,30%   {transform:rotate(calc(var(--s,1)*0))}
 70%,100%  {transform:rotate(calc(var(--s,1)*180deg))}
}
