.advo-gallery-container {
    width: 100%;
    max-width: 100%;
    position: relative;
    aspect-ratio: 3/1;

    padding: 15px;
    box-sizing: border-box;
    margin: 0 auto;
}

.advo-gallery-wrapper {
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    position: relative;
    display: grid;
    grid-template-columns: 1.8fr 1.2fr 1.4fr;
    grid-template-rows: 1.1fr 0.9fr;
    gap: 15px;
}

.advo-gallery-section {
    position: relative;
    overflow: hidden;

    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Styles spécifiques pour certaines sections */
.advo-gallery-section:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.advo-gallery-section:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.advo-gallery-section:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

.advo-gallery-section:nth-child(4) {
    grid-column: 2 / span 2;
    grid-row: 2;
}

.advo-gallery-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.1);
    will-change: opacity, transform;
    transition: opacity 1.2s ease-out, transform 8s ease-out;
    z-index: 1;
}

.advo-gallery-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.advo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Animations spécifiques pour chaque section */
.advo-gallery-section:nth-child(odd) .advo-gallery-item {
    transform-origin: center right;
}

.advo-gallery-section:nth-child(even) .advo-gallery-item {
    transform-origin: center left;
}

/* Délais d'animation différents pour chaque section */
.advo-gallery-section:nth-child(1) .advo-gallery-item { transition-delay: 0s; }
.advo-gallery-section:nth-child(2) .advo-gallery-item { transition-delay: 0.3s; }
.advo-gallery-section:nth-child(3) .advo-gallery-item { transition-delay: 0.6s; }
.advo-gallery-section:nth-child(4) .advo-gallery-item { transition-delay: 0.9s; }
