/* Restaurant Gallery - Images en carré avec crop */

.ig-post-section .ig-post-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ig-post-section .ig-post-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Container carré pour les images */
.ig-post-section .ig-post-image img {
    width: 100%;
    height: 250px; /* Hauteur fixe pour créer un carré */
    object-fit: cover; /* Crop l'image pour remplir le carré */
    object-position: center; /* Centre l'image dans le carré */
    transition: all 0.3s ease;
}

/* Effet hover sur l'image */
.ig-post-section .ig-post-image:hover img {
    transform: scale(1.05);
}

/* Overlay avec icône */
.ig-post-section .ig-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.ig-post-section .ig-post-image:hover .ig-overlay {
    opacity: 1;
}

.ig-post-section .ig-overlay i {
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.ig-post-section .ig-post-image:hover .ig-overlay i {
    transform: scale(1.2);
}

/* Responsive - Ajustement pour mobile */
@media (max-width: 768px) {
    .ig-post-section .ig-post-image img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .ig-post-section .ig-post-image img {
        height: 180px;
    }
}

/* Styles pour le lightbox Fancybox */
.fancybox-container {
    z-index: 9999;
}

.fancybox-bg {
    background: rgba(0, 0, 0, 0.9);
}

.fancybox-toolbar {
    background: rgba(0, 0, 0, 0.8);
}

.fancybox-caption {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 16px;
    padding: 15px 20px;
    text-align: center;
}

/* Animation d'apparition des images */
.ig-post-section .ig-post-image {
    animation: fadeInUp 0.6s ease forwards;
    margin-bottom: 1.9rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Délais d'animation pour chaque image */
.ig-post-section .ig-post-block:nth-child(1) .ig-post-image {
    animation-delay: 0.1s;

}

.ig-post-section .ig-post-block:nth-child(2) .ig-post-image {
    animation-delay: 0.2s;
}

.ig-post-section .ig-post-block:nth-child(3) .ig-post-image {
    animation-delay: 0.3s;
}

.ig-post-section .ig-post-block:nth-child(4) .ig-post-image {
    animation-delay: 0.4s;
}

.ig-post-section .ig-post-block:nth-child(5) .ig-post-image {
    animation-delay: 0.5s;
}

.ig-post-section .ig-post-block:nth-child(6) .ig-post-image {
    animation-delay: 0.6s;
}

.ig-post-section .ig-post-block:nth-child(7) .ig-post-image {
    animation-delay: 0.7s;
}

.ig-post-section .ig-post-block:nth-child(8) .ig-post-image {
    animation-delay: 0.8s;
}
