.portal-gallery-carousel {
    display: grid;
    gap: 14px;
    width: 100%;
    margin: 28px 0;
}

.portal-gallery-heading {
    color: #251b3d;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
}

.portal-gallery-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(79, 23, 168, 0.12);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 248, 255, 0.92)),
        radial-gradient(circle at top right, rgba(5, 191, 224, 0.12), transparent 34%);
    box-shadow: 0 20px 48px rgba(79, 23, 168, 0.08);
}

.portal-gallery-track {
    display: flex;
    width: 100%;
    transform: translateX(0);
    transition: transform 260ms ease;
}

.portal-gallery-slide {
    flex: 0 0 100%;
    display: grid;
    gap: 0;
    margin: 0;
}

.portal-gallery-slide img {
    display: block;
    width: 100%;
    height: min(66vh, 620px);
    min-height: 320px;
    object-fit: contain;
    background: rgba(245, 241, 255, 0.72);
}

.portal-gallery-slide figcaption {
    padding: 14px 18px 16px;
    color: #5e6173;
    font-size: 0.96rem;
    line-height: 1.55;
    background: rgba(255, 255, 255, 0.86);
    border-top: 1px solid rgba(79, 23, 168, 0.10);
}

.portal-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(79, 23, 168, 0.84);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 14px 34px rgba(38, 15, 84, 0.22);
    transform: translateY(-50%);
    cursor: pointer;
}

.portal-gallery-nav:hover,
.portal-gallery-nav:focus-visible {
    background: #ff6b2b;
    color: #fff;
    outline: 3px solid rgba(255, 107, 43, 0.24);
    outline-offset: 2px;
}

.portal-gallery-prev { left: 14px; }
.portal-gallery-next { right: 14px; }

.portal-gallery-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.portal-gallery-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portal-gallery-dot {
    width: 11px;
    height: 11px;
    border: 1px solid rgba(79, 23, 168, 0.30);
    border-radius: 999px;
    background: rgba(79, 23, 168, 0.14);
    cursor: pointer;
}

.portal-gallery-dot.is-active {
    width: 26px;
    background: #4f17a8;
}

.portal-gallery-counter {
    color: #5e6173;
    font-size: 0.92rem;
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .portal-gallery-slide img {
        height: 58vh;
        min-height: 240px;
    }

    .portal-gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.7rem;
    }

    .portal-gallery-prev { left: 10px; }
    .portal-gallery-next { right: 10px; }
}
