/**
 * Popup Image Text - Public Styles
 * Base structural styles. Dynamic values (colors, sizes, position)
 * are injected via inline <style> per popup.
 *
 * @package PopupImageText
 * @since 0.1.0
 */

.pit-popup {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	z-index: 99999 !important;
	visibility: hidden;
	opacity: 0;
}

.pit-popup .pit-box {
	position: absolute;
	opacity: 0;
	margin-left: 0;
	background-repeat: no-repeat;
	overflow: hidden;
}

.pit-popup .pit-box .pit-image-wrap {
	display: block;
	line-height: 0;
}

.pit-popup .pit-box .pit-image-wrap img {
	max-width: 90vw;
	height: auto;
	display: block;
}

.pit-popup .pit-box .pit-description {
	padding: 15px 20px;
	background: #fff;
	color: #333;
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
	word-wrap: break-word;
}

/* Rich text content */
.pit-popup .pit-box .pit-text-content {
	padding: 20px 24px;
	font-size: 15px;
	line-height: 1.6;
	color: #333;
	max-width: 600px;
	max-height: 70vh;
	overflow-y: auto;
	word-wrap: break-word;
}

.pit-popup .pit-box .pit-text-content h2,
.pit-popup .pit-box .pit-text-content h3 {
	margin-top: 0;
}

/* Iframe content */
.pit-popup .pit-box .pit-iframe {
	display: block;
	max-width: 90vw;
	max-height: 80vh;
	border: none;
}

/* Close button */
.pit-popup .pit-box .pit-close {
	position: absolute;
	right: 5px;
	top: 5px;
	cursor: pointer;
	border-radius: 30px;
	padding: 4px 7px 2px 7px;
	line-height: 1;
	font-weight: bold;
	z-index: 2;
	transition: transform 0.2s ease;
}

.pit-popup .pit-box .pit-close:hover {
	transform: scale(1.15);
}

/* Visibility states */
.pit-popup.pit-visible {
	visibility: visible;
	opacity: 1;
}

.pit-popup.pit-visible .pit-box {
	opacity: 1;
}

/* Trigger button base style (shortcode output) */
.pit-popup-trigger {
	cursor: pointer;
}

button.pit-popup-trigger {
	display: inline-block;
	padding: 8px 18px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	text-decoration: none;
	transition: background 0.2s ease;
}

button.pit-popup-trigger:hover {
	background: #005a87;
	color: #fff;
}

a.pit-popup-trigger {
	color: #0073aa;
	text-decoration: underline;
}

a.pit-popup-trigger:hover {
	color: #005a87;
}
