/* === ALGA POPUP === */

.alga-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.alga-popup-overlay.is-active {
    opacity: 1;
    pointer-events: all;
}

.alga-popup {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.alga-popup-image {
    flex: 1;
}

.alga-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.alga-popup-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    overflow-y: auto;
    background-color: white;
}

.alga-popup-info h2 {
    font-family: "Roboto Serif";
    color: var(--brandDarkColor);
    margin-bottom: 20px;
}

.alga-popup-intro {
    margin-bottom: 30px;
    color: var(--defaultTextColor);
}

.alga-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 50%;
    color: var(--brandDarkColor);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 1;
}

.alga-popup-close:hover {
    background: rgba(0, 0, 0, 0.16);
}

@media screen and (max-width: 768px) {
    .alga-popup {
        flex-direction: column;
        max-height: 90vh;
        overflow-y: auto;
    }

    .alga-popup-image {
        max-height: 45vh;
    }

    .alga-popup-info {
        padding: 30px;
        overflow-y: visible;
    }
}
