.biri-attraction-image.nstm-no-image {
    min-height: 220px;
}

.nstm-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #edf3f1;
    color: #7a8d87;
    text-align: center;
}

.biri-place-image.nstm-no-image {
    min-height: 210px;
}

.nstm-no-image span {
    padding: 16px;
    font-size: 13px;
}


/* =========================================================
   ATTRACTION POPUP - LARGE MODAL + MANY-IMAGE GALLERY
   v1.0.3
========================================================= */

/*
 * Desktop layout:
 * - Large popup
 * - Gallery on the left
 * - Text on the right
 * - Many thumbnails scroll horizontally
 * - Gallery count does not push/squeeze the text
 */
body .biri-modal .biri-modal-dialog {
    position: relative;
    width: min(1280px, calc(100vw - 40px));
    max-width: 1280px;
    max-height: 92vh;
    overflow-y: auto;
    overflow-x: hidden;

    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.85fr);
    align-items: stretch;

    background: #ffffff;
    border-radius: 24px;
}

/* Close button remains visible above the popup content. */
body .biri-modal .biri-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 30;
}

/* =========================================================
   LEFT SIDE - IMAGE GALLERY
========================================================= */

body .biri-modal .biri-modal-gallery {
    min-width: 0;
    padding: 26px;

    border-right: 1px solid #e4ece9;
    background: #f8fbfa;
}

/* Large main attraction image. */
body .biri-modal .biri-modal-main {
    width: 100%;
    height: clamp(430px, 61vh, 680px);

    overflow: hidden;

    background: #eef4f2;
    border-radius: 18px;
}

/*
 * Use contain so portrait / landscape attraction images
 * are not unnecessarily cropped.
 */
body .biri-modal .biri-modal-main img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
    object-position: center;
}

/*
 * MANY GALLERY IMAGES:
 * Keep thumbnails in one horizontal row.
 * If there are 10, 20, or more photos,
 * they scroll sideways instead of increasing popup height.
 */
body .biri-modal .biri-modal-thumbs {
    width: 100%;

    display: flex;
    flex-wrap: nowrap;
    gap: 10px;

    margin-top: 14px;
    padding: 2px 2px 10px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

/* Chrome / Edge scrollbar. */
body .biri-modal .biri-modal-thumbs::-webkit-scrollbar {
    height: 8px;
}

body .biri-modal .biri-modal-thumbs::-webkit-scrollbar-track {
    background: rgba(33, 76, 69, .06);
    border-radius: 999px;
}

body .biri-modal .biri-modal-thumbs::-webkit-scrollbar-thumb {
    background: rgba(33, 76, 69, .28);
    border-radius: 999px;
}

/* Fixed thumbnail size so many images never distort the layout. */
body .biri-modal .biri-thumb {
    flex: 0 0 96px;

    width: 96px;
    height: 74px;

    padding: 0;

    overflow: hidden;

    border-radius: 10px;

    cursor: pointer;
}

body .biri-modal .biri-thumb img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;
}

/* =========================================================
   RIGHT SIDE - ATTRACTION TEXT
========================================================= */

/*
 * Text area has its own protected column.
 * More gallery images will NOT reduce this width.
 */
body .biri-modal .biri-modal-content {
    min-width: 0;

    padding: 48px 38px 38px;

    overflow-wrap: anywhere;
    word-break: normal;

    background: #ffffff;
}

body .biri-modal .biri-modal-content > span {
    display: block;
    padding-right: 38px;
}

body .biri-modal .biri-modal-content h2 {
    margin-top: 8px;
    padding-right: 28px;

    line-height: 1.2;
}

body .biri-modal .biri-modal-block {
    margin-top: 26px;
}

body .biri-modal .biri-modal-block p {
    margin-bottom: 0;

    line-height: 1.75;

    white-space: normal;
    overflow-wrap: anywhere;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    body .biri-modal .biri-modal-dialog {
        width: min(920px, calc(100vw - 28px));
        max-height: 92vh;

        grid-template-columns: 1fr;
    }

    body .biri-modal .biri-modal-gallery {
        border-right: 0;
        border-bottom: 1px solid #e4ece9;

        padding: 22px;
    }

    body .biri-modal .biri-modal-main {
        height: clamp(360px, 52vh, 560px);
    }

    body .biri-modal .biri-modal-content {
        padding: 32px 28px 36px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    body .biri-modal .biri-modal-dialog {
        width: calc(100vw - 16px);
        max-height: 94vh;

        border-radius: 18px;
    }

    body .biri-modal .biri-modal-close {
        top: 10px;
        right: 10px;
    }

    body .biri-modal .biri-modal-gallery {
        padding: 14px;
    }

    body .biri-modal .biri-modal-main {
        height: min(64vw, 340px);
        min-height: 240px;

        border-radius: 14px;
    }

    body .biri-modal .biri-modal-thumbs {
        gap: 8px;

        margin-top: 10px;
    }

    body .biri-modal .biri-thumb {
        flex-basis: 80px;

        width: 80px;
        height: 62px;
    }

    body .biri-modal .biri-modal-content {
        padding: 28px 18px 30px;
    }

    body .biri-modal .biri-modal-content > span,
    body .biri-modal .biri-modal-content h2 {
        padding-right: 26px;
    }
}
