/* Spotlights: dokończenie istniejącego, nieużywanego haka na hover (przyciemnienie + delikatny zoom) */

	.spotlights > section > .image {
		overflow: hidden;
	}

		.spotlights > section > .image:before {
			transition: opacity 0.3s ease;
		}

		.spotlights > section > .image img {
			transition: transform 0.4s ease;
		}

		.spotlights > section > .image:hover:before {
			opacity: 1;
		}

		.spotlights > section > .image:hover img {
			transform: scale(1.06);
		}

		.spotlights > section > a.image[href="#"] {
			cursor: zoom-in;
		}

/* Filmy YouTube w sekcjach portfolio - responsywne 16:9 zamiast stalych
   pikselowych wymiarow (przez co "rozjezdzaly sie" na waskich ekranach) */

	.spotlights > section > .image.video-embed {
		aspect-ratio: 16 / 9;
		height: auto;
		background: #000000;
	}

		.spotlights > section > .image.video-embed iframe {
			display: block;
			width: 100%;
			height: 100%;
			border: 0;
		}

/* Scroll reveal - klasy dokladane wylacznie przez JS (assets/js/effects.js).
   Bez JS elementy pozostaja normalnie widoczne (progressive enhancement). */

	.reveal-pending {
		opacity: 0;
		transform: translateY(1.5em);
		transition: opacity 0.6s ease, transform 0.6s ease;
	}

		.reveal-pending.reveal-visible {
			opacity: 1;
			transform: translateY(0);
		}

/* Lightbox */

	#lightbox-overlay {
		display: none;
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(20, 22, 36, 0.92);
		z-index: 20000;
		align-items: center;
		justify-content: center;
		padding: 3em 2em;
		box-sizing: border-box;
		cursor: zoom-out;
	}

		#lightbox-overlay.active {
			display: -moz-flex;
			display: -webkit-flex;
			display: -ms-flex;
			display: flex;
		}

		#lightbox-overlay #lightbox-img {
			max-width: 100%;
			max-height: 100%;
			box-shadow: 0 0.5em 2em rgba(0, 0, 0, 0.5);
			border-radius: 0.25em;
			cursor: default;
		}

		#lightbox-close {
			position: absolute;
			top: 1em;
			right: 1.25em;
			color: #ffffff;
			font-size: 2.5em;
			line-height: 1;
			cursor: pointer;
			opacity: 0.8;
			transition: opacity 0.2s ease;
		}

			#lightbox-close:hover {
				opacity: 1;
			}

	body.lightbox-open {
		overflow: hidden;
	}

	@media screen and (max-width: 736px) {

		.reveal-pending {
			transform: translateY(1em);
		}

		#lightbox-overlay {
			padding: 1.5em 1em;
		}

		#lightbox-close {
			top: 0.5em;
			right: 0.75em;
			font-size: 2em;
		}

	}
