/**
 * Bishop Stang Popup -- Styles v1.0.0
 */

.bstpop-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(26, 0, 8, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.bstpop-overlay.bstpop-visible {
    opacity: 1;
}

.bstpop-square {
    position: relative;
    width: min(420px, 90vw);
    aspect-ratio: 1 / 1;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
    transform: scale(0.94);
    transition: transform 0.25s ease;
}

.bstpop-overlay.bstpop-visible .bstpop-square {
    transform: scale(1);
}

/* Image-only: image fills the entire square */
.bstpop-square--image-only .bstpop-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Image + text: image takes the top ~65%, text band below */
.bstpop-square--image-text .bstpop-image {
    flex: 0 0 65%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.bstpop-square--image-text .bstpop-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 22px;
    overflow: auto;
}

/* Text-only: centered within the whole square */
.bstpop-square--text-only .bstpop-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 32px;
}

.bstpop-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 8px;
}

.bstpop-body {
    font-size: 15px;
    line-height: 1.6;
    color: #4a4a4a;
}
.bstpop-body a { color: #a80532; }

.bstpop-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(26, 26, 26, 0.55);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.bstpop-close:hover {
    background: #a80532;
}

.bstpop-linkwrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

@media (max-width: 480px) {
    .bstpop-square { width: min(320px, 90vw); }
    .bstpop-heading { font-size: 19px; }
    .bstpop-body { font-size: 14px; }
}
