/* ══ Adaequatio Gallery v2 ══ */

.ada-gallery { position: relative; width: 100%; }

/* Stage */
.ada-stage {
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.ada-stage.ready { opacity: 1; }

/* ══ GRILLE ══ */
.ada-grid {
    display: grid;
}
.ada-grid-item {
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.ada-grid-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.35s ease, opacity 0.3s ease;
}
.ada-grid-item:hover img { transform: scale(1.05); }

/* ══ MASONRY ══ */
.ada-masonry { }
.ada-masonry-item {
    break-inside: avoid;
    overflow: hidden;
    cursor: pointer;
    display: block;
    position: relative;
}
.ada-masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.35s ease, opacity 0.3s ease;
}
.ada-masonry-item:hover img { transform: scale(1.04); }

/* ══ JUSTIFIÉE ══ */
.ada-justified {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
}
.ada-justified-item {
    overflow: hidden;
    cursor: pointer;
    flex-grow: 1;
    position: relative;
}
.ada-justified-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.35s ease, opacity 0.3s ease;
}
.ada-justified-item:hover img { transform: scale(1.04); }

/* ══ CAROUSEL ══ */
.ada-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
}
.ada-track {
    display: flex;
    will-change: transform;
}
.ada-slide {
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}
.ada-slide img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.35s ease, opacity 0.3s ease;
}
.ada-slide:hover img { transform: scale(1.03); }

/* ── Flèches ── */
.ada-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    outline: none;
}

/* Style : cercle blanc */
.ada-arrow.style-round {
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.18);
}
.ada-arrow.style-round:hover {
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    transform: translateY(-50%) scale(1.08);
}
.ada-arrow.style-round svg { fill: #222; width: 100%; height: 100%; }

/* Style : cercle noir */
.ada-arrow.style-dark {
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    padding: 12px;
}
.ada-arrow.style-dark:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.08);
}
.ada-arrow.style-dark svg { fill: #fff; width: 100%; height: 100%; }

/* Style : minimal */
.ada-arrow.style-minimal {
    background: none;
    width: 40px;
    height: 40px;
    padding: 8px;
}
.ada-arrow.style-minimal:hover { transform: translateY(-50%) scale(1.15); }
.ada-arrow.style-minimal svg { fill: #fff; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5)); width: 100%; height: 100%; }

.ada-prev { left: 12px; }
.ada-next { right: 12px; }

/* ── Dots ── */
.ada-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}
.ada-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}
.ada-dot.active {
    background: #222;
    transform: scale(1.25);
}

/* ══ LIGHTBOX ══ */
.ada-lb {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ada-lb-bg {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.93);
    cursor: pointer;
}
.ada-lb-body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 96vw;
    max-height: 94vh;
}
.ada-lb-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 84vw;
    max-height: 88vh;
}
.ada-lb-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    border-radius: 3px;
    box-shadow: 0 10px 60px rgba(0,0,0,0.6);
    transition: opacity 0.25s ease;
}
.ada-lb-close,
.ada-lb-prev,
.ada-lb-next {
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 50%;
    width: 48px; height: 48px;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
    line-height: 1;
}
.ada-lb-close:hover,
.ada-lb-prev:hover,
.ada-lb-next:hover { background: rgba(255,255,255,0.28); }
.ada-lb-close {
    position: absolute;
    top: -54px;
    right: 0;
    font-size: 18px;
    width: 38px; height: 38px;
}
.ada-lb-info {
    position: absolute;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    white-space: nowrap;
}

/* ══ Responsive ══ */
@media (max-width: 767px) {
    .ada-arrow.style-round,
    .ada-arrow.style-dark { width: 36px; height: 36px; padding: 9px; }
    .ada-lb-prev, .ada-lb-next { width: 40px; height: 40px; font-size: 24px; }
    .ada-lb-frame { max-width: 96vw; }
    .ada-lb-img { max-height: 72vh; }
}
