@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #fff;
    color: #1a1a1a;
}

.aspect-ratio-box {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: #f5f5f5;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.aspect-ratio-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.aspect-ratio-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.aspect-ratio-box img.visible {
    opacity: 1;
    transform: scale(1);
}

/* Lightbox Styles */
#lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#lightbox.active {
    display: flex;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
}

#lightbox-close {
    position: fixed;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
    color: #000;
}

/* Masonry Gap */
.column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Skeleton Loading Pulse */
@keyframes pulse {
    0%, 100% { background-color: #f0f0f0; }
    50% { background-color: #e0e0e0; }
}

.aspect-ratio-box:not(:has(img.visible)) {
    animation: pulse 2s infinite ease-in-out;
}
