.bpgc-banner {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: var(--bpgc-banner-desktop-height, 540px);
    overflow: hidden;
    background: #d9dddb;
    color: #ffffff;
    isolation: isolate;
}

.bpgc-banner--viewport {
    left: 50%;
    width: 100vw;
    max-width: none;
    transform: translateX(-50%);
}

.bpgc-banner--fill {
    height: 100%;
}

.bpgc-auth-left--banner {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.bpgc-banner__viewport,
.bpgc-banner__slide,
.bpgc-banner__picture,
.bpgc-banner__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.bpgc-banner__slide {
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 360ms ease, visibility 0s linear 360ms;
}

.bpgc-banner__slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

.bpgc-banner__slide.is-unavailable {
    display: none;
}

.bpgc-banner__image {
    object-fit: cover;
    object-position: var(--bpgc-banner-desktop-focus, 50% 50%);
    user-select: none;
    -webkit-user-drag: none;
}

.bpgc-banner__type,
.bpgc-banner__detail,
.bpgc-banner__indicators {
    position: absolute;
    z-index: 2;
}

.bpgc-banner__type {
    top: 20px;
    left: 20px;
    min-width: 48px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, .5);
    background: rgba(17, 24, 39, .78);
    color: #ffffff;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
}

.bpgc-banner__type--advertisement {
    background: rgba(15, 91, 79, .88);
}

.bpgc-banner__type--notice {
    background: rgba(154, 52, 18, .88);
}

.bpgc-banner__type--activity {
    background: rgba(30, 64, 175, .88);
}

.bpgc-banner__type--topic {
    background: rgba(88, 28, 135, .88);
}

.bpgc-banner__detail {
    right: 20px;
    bottom: 20px;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .7);
    background: rgba(17, 24, 39, .82);
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
}

.bpgc-banner__detail:hover,
.bpgc-banner__detail:focus-visible {
    border-color: #ffffff;
    background: #ffffff;
    color: #111827;
}

.bpgc-banner__detail span {
    font-size: 20px;
    line-height: 1;
}

.bpgc-banner__indicators {
    left: 50%;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.bpgc-banner__indicator {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
}

.bpgc-banner__indicator.is-active {
    background: #16b777;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .75);
}

.bpgc-banner__indicator:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

@media screen and (max-width: 768px) {
    .bpgc-banner:not(.bpgc-banner--fill) {
        height: var(--bpgc-banner-mobile-height, 180px);
    }

    .bpgc-banner__image {
        object-position: var(--bpgc-banner-mobile-focus, 50% 50%);
    }

    .bpgc-banner__type {
        top: 12px;
        left: 12px;
        min-width: 42px;
        padding: 3px 8px;
        font-size: 12px;
    }

    .bpgc-banner__detail {
        right: 12px;
        bottom: 12px;
        min-height: 34px;
        padding: 0 12px;
        font-size: 13px;
    }

    .bpgc-banner__indicators {
        bottom: 14px;
        gap: 8px;
    }

    .bpgc-auth-page--with-banner {
        flex-direction: column;
    }

    .bpgc-auth-page--with-banner .bpgc-auth-left--banner {
        display: block;
        width: 100%;
        height: 180px;
        flex: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bpgc-banner__slide {
        transition: none;
    }
}
