/* =========================================
   GALLERY PAGE SPECIFIC STYLES
========================================= */

.gallery-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    height: 240px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%; 
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-caption {
    position: absolute;
    bottom: 0; 
    left: 0; 
    right: 0;
    padding: 20px 18px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #ffffff;
    transform: translateY(4px);
    transition: transform 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.gallery-item:hover .gallery-caption { 
    transform: translateY(0); 
}
