/* =============================================
   Vimeo Gallery – Public Styles
   ============================================= */

/* ---- Kachelwand (Shortcode) ---- */
.vg-shortcode-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 24px 0;
}

@media (max-width: 700px) {
	.vg-shortcode-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 440px) {
	.vg-shortcode-grid {
		grid-template-columns: 1fr;
	}
}

.vg-sc-tile {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,.10);
	background: #fff;
}
.vg-sc-tile:hover {
	text-decoration: none;
}

.vg-sc-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #111;
}
.vg-sc-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Hover overlay – 50% dark tint */
.vg-sc-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.5);
	opacity: 0;
	transition: opacity .2s;
	pointer-events: none;
}
.vg-sc-tile:hover .vg-sc-thumb::after {
	opacity: 1;
}

.vg-sc-no-thumb {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1a1a2e;
	color: #fff;
	font-size: 2.5rem;
}

/* Play button overlay */
.vg-sc-play-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 48px;
	height: 48px;
	background: rgba(0,0,0,.55);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	padding-left: 3px; /* optical centering for ▶ */
	opacity: 0;
	transition: opacity .2s, background .2s;
	pointer-events: none;
	z-index: 1;
}
.vg-sc-tile:hover .vg-sc-play-btn {
	opacity: 1;
	background: rgba(0, 118, 206, .8);
}

.vg-sc-title {
	padding: 10px 12px;
	font-size: .9rem;
	font-weight: 600;
	line-height: 1.4;
	color: #1d2327;
}

/* ---- "Alle anzeigen" button ---- */
.vg-load-more-wrap {
	text-align: center;
	margin-top: 24px;
}

.vg-load-more-btn {
	display: inline-block;
	padding: 10px 28px;
	background: transparent;
	border: 2px solid currentColor;
	border-radius: 4px;
	font-size: .95rem;
	font-weight: 600;
	cursor: pointer;
	color: inherit;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.vg-load-more-btn:hover {
	background: rgba(0,0,0,.07);
	text-decoration: none;
	color: inherit;
}
.vg-load-more-btn[disabled] {
	opacity: .4;
	cursor: default;
}

/* ---- Single Video Page ---- */
.vg-player-wrap {
	margin-bottom: 28px;
}

.vg-player-responsive {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
	overflow: hidden;
	background: #000;
	border-radius: 4px;
}
.vg-player-responsive iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.vg-video-title {
	margin-top: 0;
}

/* ---- Featured Video (full-width shortcode) ---- */
.vg-featured-wrap {
	margin: 0 0 24px;
}

.vg-featured-title {
	margin: 10px 0 0;
	font-size: 1rem;
	font-weight: 600;
}
.vg-featured-title a {
	text-decoration: none;
	color: inherit;
}
.vg-featured-title a:hover {
	text-decoration: underline;
}

/* ---- Prev / Next Navigation ---- */
.vg-post-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 32px;
	padding-top: 16px;
	border-top: 1px solid currentColor;
	opacity: .35;
}
.vg-post-nav-prev { text-align: left; }
.vg-post-nav-next { text-align: right; }
.vg-post-nav a {
	text-decoration: none;
	color: inherit;
}
.vg-post-nav a:hover {
	text-decoration: underline;
}
