body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #ffeeee 25%, #dce2ff 75%); background-attachment: fixed; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: center; min-height: 100vh; } h1 { color: #333; margin: 20px 0; font-size: 24px; text-align: center; } .gallery-container { display: flex; flex-direction: column; gap: 20px; padding: 20px; width: 100%; max-width: 1200px; box-sizing: border-box; transition: all 0.5s ease-in-out; } .batch-container { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } hr { border: none; border-top: 2px solid #ddd; margin: 20px 0; } .responsive-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity 0.5s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); border-radius: 8px; } .responsive-img.loaded { opacity: 1; } .responsive-img:not(.loaded) { opacity: 0; } .responsive-img:hover { transform: scale(1.05); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); } .added { animation: fadeIn 0.5s ease-in-out; } .removed { animation: fadeOut 0.5s ease-in-out; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } } /* Media queries for responsive padding */ @media (max-width: 1199px) { .gallery-container { padding-left: 40px; padding-right: 40px; } }