/* Gallery Component Styles */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 10px;
    gap: 24px;
    margin-bottom: 4rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    transition: all 0.4s var(--smooth);
    grid-row-end: span 20; /* Default span */
}

.gallery-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(5, 7, 10, 0.9) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.copy-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--smooth);
    box-shadow: 0 4px 10px var(--primary-glow);
}

.copy-btn:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.copy-btn:active {
    transform: scale(0.9);
}
