/* ===========================
   Gallery Page Styles
   =========================== */

.gallery-section {
    padding: 3rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.gallery-item a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-item .img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f0f0f0;
}

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

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

.gallery-item .img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(74, 3, 1, 0.0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-item:hover .img-overlay {
    background: rgba(74, 3, 1, 0.3);
}

.gallery-item .img-overlay i {
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .img-overlay i {
    opacity: 1;
    transform: scale(1);
}

.gallery-item .caption {
    padding: 1rem;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-section {
        padding: 2rem 0;
    }
}
