﻿/*------------------------------------------------------------
	Modal overlay + shell (shared Strata modal)
------------------------------------------------------------*/

.st-modal__overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	box-sizing: border-box;
	backdrop-filter: blur(2px);
	background-color: rgba(0, 0, 0, 0.8);
}

.st-modal__overlay[aria-hidden="false"] {
	display: flex;
}

.st-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.st-modal__close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem;
}

.st-modal__close .button-link,
.st-modal__close button {
	margin: 0;
	padding: 0;
	min-width: 3rem;
	min-height: 3rem;
	font-size: 2rem;
	line-height: 1;
	color: #fff;
	cursor: pointer;
	background: transparent;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.st-modal__close .button-link:hover,
.st-modal__close button:hover {
	color: var(--st-color--accent-3);
}

.st-modal__close .button-link:focus-visible,
.st-modal__close button:focus-visible {
	outline: 2px solid var(--st-color--accent-1);
	outline-offset: 2px;
}

.st-modal__content {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: min(90vw, 100%);
    max-height: 90vh;
    overflow: auto;
    box-sizing: border-box;
}
