/* Pages imported from WordPress: pieces the old jQuery used to style at runtime (src/wordpress/behaviors.js) */

.wp-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, .8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wp-modal__dialog {
    position: relative;
    background: #fff;
    max-width: 640px;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 8px;
}

.wp-modal--video .wp-modal__dialog {
    max-width: 1000px;
    background: #000;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.wp-modal--video .wp-modal__body,
.wp-modal--video .wp-modal__body iframe {
    width: 100%;
    height: 100%;
}

.wp-modal__close {
    position: absolute;
    top: 6px;
    right: 10px;
    z-index: 2;
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    color: #6d7882;
    cursor: pointer;
}

.wp-modal--video .wp-modal__close {
    color: #fff;
}

/* "where do you want to live" picker: the select2 dropdown, positioned by behaviors.js */
.wp-picker-dropdown .select2-results__options {
    max-height: 260px;
    overflow-y: auto;
}

.wp-picker-dropdown .select2-image,
.wp-locations .select2-image {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 6px;
}

.wp-locations .select2-selection,
form[id^="form-footer"] .select2-selection {
    cursor: pointer;
}

/* entrance animations already ran when the element scrolled in; keep the final state */
.wp-page .animated {
    animation-fill-mode: both;
}

/* typing effect cursor (TypeIt on the old site) */
.wp-typeit-cursor {
    display: inline;
    animation: wp-typeit-blink 1s step-end infinite;
}
@keyframes wp-typeit-blink {
    50% { opacity: 0; }
}

/* Elementor galleries: columns and gap per breakpoint (set by behaviors.js as --wp-* on the container) */
.e-gallery-grid.wp-gallery { --columns: var(--wp-columns); --hgap: var(--wp-gap); --vgap: var(--wp-gap); }
@media (max-width: 1024px) {
    .e-gallery-grid.wp-gallery { --columns: var(--wp-columns-tablet); --hgap: var(--wp-gap-tablet); --vgap: var(--wp-gap-tablet); }
}
@media (max-width: 767px) {
    .e-gallery-grid.wp-gallery { --columns: var(--wp-columns-mobile); --hgap: var(--wp-gap-mobile); --vgap: var(--wp-gap-mobile); }
}
