/* Custom CSS for Beyond Work Gallery */

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    margin-top: 20px;
}

.gallery-section {
    margin-bottom: 0.5rem;
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    display: inline-block;
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    aspect-ratio: 0.75 / 1;
    /* Square images by default */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

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

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

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Optional Caption Overlay */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
}

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