/* ==========================================================================
   /wycieczki - lista wycieczek, galeria zdjec, lightbox
   Przepisane z c90pl-old/public/styles/excursions.scss (mixin animatedBorder
   rozwiniety w regule .animated-border).
   ========================================================================== */

.animated-border,
.excursions-container .excursion img,
.excursion-container #lightgallery .photo img {
	border-radius: 6px;
	border: 2px solid white;
	transition: border 500ms ease-out;
}

.excursions-container .excursion img:hover,
.excursion-container #lightgallery .photo img:hover {
	border: 2px solid red;
}

/* --- lista wycieczek ------------------------------------------------------ */

.excursions-container .excursion {
	background-color: #3e3127;
	border-radius: 20px;
	height: 170px;
	clear: both;
	width: 700px;
	margin-bottom: 10px;
}

.excursions-container .excursion .description {
	float: left;
	width: 500px;
	padding-left: 20px;
}

.excursions-container .excursion .description h2 {
	font-size: 1.5em;
	margin: 10px 0 0;
}

.excursions-container .excursion .description h4 {
	font-size: 0.9em;
}

.excursions-container .excursion .description p {
	margin: 0;
}

.excursions-container .excursion .description p.link-to-mapa-trasy {
	margin-top: 30px;
	margin-bottom: 5px;
}

.excursions-container .excursion img {
	float: right;
	margin-top: 20px;
	margin-right: 20px;
	width: 175px;
	height: 131px;
	object-fit: cover;
}

/* --- galeria pojedynczej wycieczki ---------------------------------------- */

.excursion-container #lightgallery {
	padding: 20px;
	background-color: #3e3127;
	border-radius: 20px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

.excursion-container #lightgallery .photo {
	margin: 3px;
	cursor: pointer;
	display: block;
	line-height: 0;
}

.excursion-container #lightgallery .photo img {
	width: 175px;
	height: 131px;
	object-fit: cover;
	display: block;
}

/* --- mapka trasy ---------------------------------------------------------- */

.excursion-map iframe {
	border: 0;
	border-radius: 6px;
	max-width: 100%;
}

/* --- lightbox ------------------------------------------------------------- */

body.lb-locked {
	overflow: hidden;
}

.lb-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(20, 15, 11, 0.94);
	align-items: center;
	justify-content: center;
}

.lb-overlay.is-open {
	display: flex;
}

.lb-figure {
	margin: 0;
	max-width: 92vw;
	max-height: 88vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lb-img {
	max-width: 92vw;
	max-height: 88vh;
	border-radius: 6px;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.lb-overlay button {
	position: absolute;
	background: none;
	border: 0;
	color: #c4af9e;
	cursor: pointer;
	font-family: Georgia, serif;
	line-height: 1;
	padding: 10px 18px;
	transition: color 200ms ease-out;
}

.lb-overlay button:hover {
	color: #fff;
}

.lb-close {
	top: 10px;
	right: 16px;
	font-size: 40px;
}

.lb-prev,
.lb-next {
	top: 50%;
	transform: translateY(-50%);
	font-size: 72px;
}

.lb-prev {
	left: 10px;
}

.lb-next {
	right: 10px;
}

.lb-counter {
	position: absolute;
	bottom: 18px;
	left: 0;
	right: 0;
	text-align: center;
	color: #aaa;
	font-size: 13px;
}
