.mv-map {
    position: relative;
}

.mv-map-image-wrap {
    position: relative;
    width: 100%;
}

.mv-map-image {
    display: block;
    width: 100%;
    height: auto;
}

.mv-map-marker {
    position: absolute;
    transform: translate(-50%, -100%);
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;

    width: 30px;
}

.mv-map-marker.mv-map-marker-has-video {
    width: 40px;
    z-index: 2;
}

.mv-map-marker-icon {
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    transition: transform .2s ease;
    pointer-events: none;
}

.mv-map-marker:hover .mv-map-marker-icon,
.mv-map-marker:focus-visible .mv-map-marker-icon,
.mv-map-marker.is-active .mv-map-marker-icon {
    transform: scale(1.08);
}

.mv-map-overlay {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.6);
    z-index: 1000;
}

.mv-map-overlay.is-open {
    display: flex;
}

.mv-map-overlay-inner {
    position: relative;
    width: min(1400px, calc(100vw - 40px));
    max-height: 90vh;
    overflow: hidden;
    overflow-y: auto;
    display: grid;
    grid-template-columns: minmax(500px, 2fr) minmax(450px, 1fr);
    gap: 0 40px;
    padding: 32px;
    background: #fff;
    border-radius: 16px;
}

.mv-map-overlay-inner.mv-map-overlay-no-video {
    max-width: 700px;
    grid-template-columns: 1fr;
}

.mv-map-overlay-video {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.mv-map-overlay-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.mv-map-overlay-description {
    min-width: 0;
    overflow-wrap: anywhere;
}

.mv-map-overlay-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.mv-map-overlay-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: 0;
    background: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.mv-map-overlay-meta {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.mv-map-overlay .wp-block-button {
	margin-top: 2rem;
}

.mv-map-overlay .wp-block-button__link {
	border-radius: 9999px;
}

@media (max-width: 920px) {
    .mv-map-overlay-inner {
        grid-template-columns: 1fr;
    }
}
