/*
 * The internship galleries' viewer — a picture opened large.
 *
 * Read from cp-all-designer css/geniversity.css:1180-1240 (.yglb). The viewer
 * is one <dialog> at the foot of the page, outside every section, so its rules
 * stand on its own class.
 */

.custom-internship-viewer {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #FFFFFF;
}

.custom-internship-viewer::backdrop {
	background: rgba(14, 30, 84, 0.92);
}

.custom-internship-viewer .custom-internship-viewer__stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	box-sizing: border-box;
	height: 100%;
	padding: 64px 72px 32px;
}

.custom-internship-viewer .custom-internship-viewer__picture {
	display: block;
	max-width: 100%;
	max-height: calc(100% - 60px);
	height: auto;
	object-fit: contain;
	border-radius: 6px;                    /* --r-sm */
}

.custom-internship-viewer .custom-internship-viewer__caption {
	max-width: 870px;
	margin: 0;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.6;
	text-align: center;
	color: rgba(255, 255, 255, 0.86);
}

.custom-internship-viewer .custom-internship-viewer__press {
	position: absolute;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.3);   /* geniversity.css measures 1px */
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #FFFFFF;
	cursor: pointer;
	transition: background-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-internship-viewer .custom-internship-viewer__press:hover {
	background: rgba(255, 255, 255, 0.24);
}

.custom-internship-viewer .custom-internship-viewer__press:focus-visible {
	outline: 4px solid #50A3D5;             /* geniversity.css measures 3px */
	outline-offset: 2px;
}

.custom-internship-viewer .custom-internship-viewer__close {
	top: 12px;
	right: 12px;
}

.custom-internship-viewer .custom-internship-viewer__prev {
	top: 50%;
	left: 12px;
	transform: translateY(-50%);
}

.custom-internship-viewer .custom-internship-viewer__next {
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
}

@media (max-width: 767px) {
	.custom-internship-viewer .custom-internship-viewer__stage {
		padding: 64px 16px 84px;
	}
	.custom-internship-viewer .custom-internship-viewer__prev,
	.custom-internship-viewer .custom-internship-viewer__next {
		top: auto;
		bottom: 20px;
		transform: none;
	}
	.custom-internship-viewer .custom-internship-viewer__prev {
		left: calc(50% - 60px);
	}
	.custom-internship-viewer .custom-internship-viewer__next {
		right: calc(50% - 60px);
	}
}

/* a repeated picture that opens the one it repeats takes the same pointer */
.custom-widget [data-custom-zoom] {
	cursor: zoom-in;
}

.custom-widget span[data-custom-zoom]:not(.is-zoom) {
	cursor: default;
}
