/* Specifieke styling voor de Kuierroute elementen op de hoofdsite */

section {
	max-width: 1240px;
	margin: auto;
}

.qr-content-card {
	background: #ffffff;
	padding: 25px 20px;
	border-radius: 16px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
	margin-bottom: 22px;
	position: relative;
	overflow: hidden;
}

.card-header-icon {
	font-size: 32px;
	color: #0284c7;
	margin-bottom: 12px;
	text-align: center;
}

.qr-title {
	font-family: 'FuturaBT-MediumCondensed';
	font-size: 38px;
	line-height: 40px;
	margin-bottom:8px;
	padding-bottom:0px;
}

.qr-text {
	margin-top:20px;
		font-family: Verdana, Arial, sans-serif;
	
	color: #334155;
}

.qr-text p {
	margin-top: 0;
	margin-bottom: 16px;
}

.media-box {
	background: #ffffff;
	padding: 18px;
	border-radius: 16px;
	margin-bottom: 18px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.03);
	border-left: 5px solid #0284c7;
}

.audio-box {
	border-left-color: #22c55e;
}

.media-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 12px;
	font-size: 22px;
}

.media-title i {
	font-size: 18px;
	color: #0284c7;
}

.audio-box .media-title i {
	color: #22c55e;
}

.mobile-player {
	width: 100%;
	border-radius: 10px;
	display: block;
	outline: none;
}

.qr-gallery-section {
	background: #ffffff;
	padding: 20px 15px;
	border-radius: 16px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
	margin-bottom: 25px;
	border-left: 5px solid #ef4444; 
}

.gallery-title {
	margin-top: 0;
	font-size: 22px;
	color: #1e293b;
	margin-bottom: 16px;
	font-weight: 700;
}

.gallery-title i {
	color: #ef4444;
	margin-right: 6px;
}

.qr-gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.gallery-item {
	display: block;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	position: relative;
	box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.gallery-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(30, 41, 59, 0.3);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	font-size: 20px;
	opacity: 0;
	transition: opacity 0.2s;
}

.gallery-item:active .gallery-overlay {
	opacity: 1;
}

.gallery-item:only-child {
    grid-column: span 2;
    aspect-ratio: auto; 
}

.gallery-item:only-child img {
    height: auto;
    max-height: 400px; 
    object-fit: contain; 
    background: #f8fafc;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(76, 104, 175, 0.95) 100%);
    color: #ffffff;
    padding: 16px 10px 8px 15px;
    font-size: 17px; 
    font-weight: 700;
    line-height: 1.3;
    z-index: 3;
    pointer-events: none;
    box-sizing: border-box;
}

.gallery-caption span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}

.route-footer-icons {
	display: flex;
	justify-content: space-around;
	align-items: center;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #cbd5e1;
}

.icon-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
}

.icon-item i {
	font-size: 22px;
	color: #94a3b8;
}

/* Colorbox overrides voor de popup galerij */
#cboxOverlay {
	background: rgba(15, 23, 42, 0.85) !important;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	z-index: 9998 !important;
}

/* Colorbox sluit- en navigatieknoppen en schaling */
#colorbox {
	outline: none !important;
	padding: 0 !important;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6) !important;
	background: #ffffff !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	z-index: 9999 !important;
}

#cboxWrapper {
	background: #ffffff !important;
	border-radius: 12px !important;
	overflow: hidden !important;
}

#cboxContent {
	background: #ffffff !important;
	position: relative;
	overflow: hidden !important;
}

/* Zorg dat de foto netjes meeschaalt zonder scrollbars */
#cboxLoadedContent {
	overflow: hidden !important;
}

#cboxLoadedContent img.cboxPhoto {
	border-radius: 12px 12px 0 0 !important;
	display: block !important;
	width: auto !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: 78vh !important; /* Voorkomt dat de foto te lang wordt en buiten het scherm valt */
	margin: 0 auto !important;
}

/* Nette rode sluitknop met gecentreerd kruisje */
#cboxClose {
	position: absolute !important;
	top: 10px !important;
	right: 10px !important;
	width: 32px !important;
	height: 32px !important;
	background: #ef4444 !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 50% !important;
	cursor: pointer !important;
	z-index: 9999 !important;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
}

#cboxClose:hover {
	background: #dc2626 !important;
}

#cboxClose i {
	font-size: 14px !important;
	color: #ffffff !important;
}

/* Vorige en Volgende knoppen */
#cboxPrevious, #cboxNext {
	position: absolute !important;
	bottom: 10px !important;
	width: 40px !important;
	height: 32px !important;
	background: #1e293b !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 6px !important;
	cursor: pointer !important;
	z-index: 9999 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
}

#cboxPrevious { 
	left: 12px !important; 
}

#cboxNext { 
	right: 12px !important; /* Zet het rechter pijltje vast aan de rechterkant, net zoals de linker aan de linkerkant */
}

#cboxCurrent {
	position: absolute;
	bottom: 15px;
	left: 60px;
	right: 60px;
	text-align: center;
	color: #ffffff !important;
	font-family: system-ui, -apple-system, sans-serif;
	font-size: 12px !important;
	font-weight: 600;
	margin: 0 !important;
	padding: 0 !important;
	pointer-events: none;
}

#cboxPrevious i, #cboxNext i {
	font-size: 14px !important;
	color: #ffffff !important;
}

#cboxTitle {
	display: none !important;
}

@media (max-width: 768px) {
    .qr-gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px; 
    }
}