/* ── Accordion Gallery ──────────────────────────────────────── */
.accordion-gallery {
    width: 100%;
}

.accordion-gallery__container {
    display: flex;
    width: 100%;
    overflow: hidden;
}

/* ── Panel ── */
.accordion-gallery__panel {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex: 1;
    margin: 0;
    cursor: pointer;
    transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.accordion-gallery__panel:last-child {
    border-right: none;
}

/* ── Overlay ── */
.accordion-gallery__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.6s ease;
    z-index: 1;
}

.accordion-gallery__panel.is-active .accordion-gallery__overlay {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(30, 60, 100, 0.8) 70%,
        rgba(30, 60, 100, 0.95) 100%
    );
}

/* ── Icon wrapper ── */
.accordion-gallery__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.accordion-gallery__icon::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.accordion-gallery__icon i,
.accordion-gallery__icon svg {
    width: 24px;
    height: 24px;
    font-size: 24px;
    color: #fff;
    fill: #fff;
    z-index: 2;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ── Content ── */
.accordion-gallery__content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 120px;
    color: #fff;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    visibility: hidden;
}

.accordion-gallery__title {
    font-size: 36px;
    margin-bottom: 15px;
    font-weight: 600;
    white-space: nowrap;
    color: #fff;
    line-height: 1.2;
}

.accordion-gallery__desc {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.accordion-gallery__btn {
    display: inline-block;
    padding: 8px 24px;
    border: 1px solid #fff;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
    pointer-events: auto;
}

.accordion-gallery__btn:hover {
    background: #fff;
    color: #333;
}

/* ── Active state ── */
.accordion-gallery__panel.is-active {
    flex: 5;
    cursor: default;
}

.accordion-gallery__panel.is-active .accordion-gallery__icon {
    top: auto;
    left: auto;
    bottom: 40px;
    right: 40px;
    transform: translate(0, 0);
    width: 70px;
    height: 70px;
}

.accordion-gallery__panel.is-active .accordion-gallery__icon i,
.accordion-gallery__panel.is-active .accordion-gallery__icon svg {
    width: 30px;
    height: 30px;
    font-size: 30px;
}

.accordion-gallery__panel.is-active .accordion-gallery__content {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0.3s;
}

/* ── Mobile ── */
@media (max-width: 767px) {
    .accordion-gallery__container {
        flex-direction: column;
    }

    .accordion-gallery__panel {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .accordion-gallery__panel:last-child {
        border-bottom: none;
    }

    .accordion-gallery__panel.is-active {
        flex: 6;
    }

    .accordion-gallery__icon {
        width: 40px;
        height: 40px;
    }

    .accordion-gallery__icon i,
    .accordion-gallery__icon svg {
        width: 18px;
        height: 18px;
        font-size: 18px;
    }

    .accordion-gallery__panel.is-active .accordion-gallery__icon {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .accordion-gallery__content {
        bottom: 20px;
        left: 20px;
        right: 80px;
    }

    .accordion-gallery__title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .accordion-gallery__desc {
        font-size: 12px;
        margin-bottom: 15px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}
