/**
 * AIA Ziarul Curent — sidebar copertă + modal PDF.
 *
 * @package AIA_Pro
 */

.aia-pro-newspaper {
	width: 100%;
	font-family: 'Roboto Slab', Georgia, serif;
}

.aia-newspaper {
	width: 100%;
	overflow: hidden;
	background-color: #fff;
}

.aia-newspaper__cover {
	padding: 0;
	line-height: 0;
}

.aia-newspaper-trigger,
.aia-newspaper-cover {
	display: block;
	width: 100%;
	height: auto;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.aia-newspaper-cover {
	cursor: default;
}

.aia-newspaper-trigger:focus-visible {
	outline: 2px solid #e60000;
	outline-offset: 3px;
}

.aia-newspaper-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.aia-newspaper-modal.active {
	display: flex;
}

.aia-newspaper-modal__overlay {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.85);
	cursor: pointer;
}

.aia-newspaper-modal__panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	width: 95%;
	max-width: 960px;
}

.aia-newspaper-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0 0 0.75rem;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 2.75rem;
	line-height: 1;
	cursor: pointer;
}

.aia-newspaper-modal__dialog {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 85vh;
	max-height: 85vh;
	padding: 0.5rem;
	border-radius: 6px;
	background-color: #111;
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

.aia-newspaper-modal__viewer {
	flex: 1;
	min-height: 0;
	width: 100%;
	overflow: hidden;
	border-radius: 4px;
}

.aia-newspaper-modal__viewer iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	background-color: #fff;
}

@media (max-width: 767px) {
	.aia-newspaper-modal {
		padding: 0.5rem;
	}

	.aia-newspaper-modal__panel {
		width: 95%;
	}

	.aia-newspaper-modal__dialog {
		height: 85vh;
		max-height: 85vh;
		padding: 0.25rem;
	}

	.aia-newspaper-modal__close {
		margin-bottom: 0.5rem;
		font-size: 2.5rem;
	}
}
