/* Template archive-ap_schedule: modal with the details of an item. */

.ap-sch-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(15, 11, 7, 0.55);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	animation: ap-sch-fade-in 0.2s ease;
}

.ap-sch-modal[hidden] {
	display: none;
}

.ap-sch-modal__box {
	background: var(--ap-color-paper);
	border-radius: var(--ap-radius-card-lg);
	max-width: 680px;
	width: 100%;
	max-height: 88vh;
	overflow-y: auto;
	animation: ap-sch-modal-in 0.3s var(--ap-ease-drawer);
}

.ap-sch-modal__box:focus {
	outline: none;
}

.ap-sch-modal__media {
	height: 240px;
	border-radius: 22px 22px 0 0;
	overflow: hidden;
	background-image: repeating-linear-gradient(135deg, #e9e2d6 0, #e9e2d6 14px, #e3dbcd 14px, #e3dbcd 28px);
	position: relative;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 18px;
}

.ap-sch-modal__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ap-sch-modal__kind {
	font-family: var(--ap-font-mono);
	font-size: 12px;
	color: var(--ap-color-white);
	padding: 6px 13px;
	border-radius: var(--ap-radius-button);
	position: relative;
	z-index: 1;
}

.ap-sch-modal__close {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 0;
	background: rgba(43, 43, 48, 0.7);
	color: var(--ap-color-white);
	font-size: 18px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
}

.ap-sch-modal__close:hover {
	background: var(--ap-color-graphite);
}

.ap-sch-modal__body {
	padding: 32px 36px 40px;
}

.ap-sch-modal__when {
	display: flex;
	align-items: center;
	gap: 16px;
	font-family: var(--ap-font-mono);
	font-size: 13px;
	color: var(--ap-color-accent);
}

.ap-sch-modal__date {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.ap-sch-modal__time {
	color: #8a8076;
}

.ap-sch-modal__title {
	font-family: var(--ap-font-heading);
	font-weight: 700;
	font-size: clamp(28px, 3.4vw, 40px);
	line-height: 1.1;
	margin-top: 14px;
}

.ap-sch-modal__place {
	margin-top: 18px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	color: var(--ap-color-ink-soft);
}

.ap-sch-modal__pin {
	color: var(--ap-color-accent);
}

.ap-sch-modal__desc {
	margin-top: 22px;
	font-size: 17px;
	line-height: 1.6;
	color: #3a342b;
}

.ap-sch-modal__actions {
	margin-top: 30px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.ap-sch-modal__btn {
	gap: 8px;
	padding: 13px 22px;
	font-size: 15px;
}

.ap-sch-modal__btn[hidden] {
	display: none;
}

@keyframes ap-sch-modal-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes ap-sch-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}
