/* Samuland video grid (Videos/index.html). Same look as the costumes/droids pages:
   tiled dark background, Russo One logo, uppercase menu with the green (#A7D019) hover,
   and the cyan (#3FF) titles from the old video player. */

html, body { margin: 0; padding: 0; }
body {
	background: #111 url(../../Images/sub-content.png) top left repeat;
	color: #e5e5e5;
	font: 14px "Helvetica Neue", Arial, Helvetica, sans-serif;
}

/* ---- header + menu (same markup/styles as costumes.aspx / Droids.aspx) ---- */
.menucostumes { display: block; margin-top: 20px; margin-bottom: 30px; overflow: hidden; }
.SLLogo { font-family: 'Russo One', sans-serif; font-size: 24px; margin: 10px; color: #fff; }
#nav {
	overflow: hidden; float: left; text-transform: uppercase;
	margin: 4px 0 0; padding: 0 0 0 20px;
	color: #fff; font: 90% "Helvetica Neue", Arial, Helvetica, sans-serif;
}
#nav li { float: left; list-style: none; margin: 0 0 0 20px; }
#nav li a {
	text-decoration: none; padding: 8px 10px; border-radius: 5px;
	color: #fff; display: block;
}
#nav li a:hover, #nav li a.active { background: #A7D019; color: #333; }
#nav img { border: 0; }

/* ---- grid ---- */
.vgrid {
	max-width: 1200px; margin: 0 auto; padding: 0 20px 20px;
	display: -ms-grid; display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	grid-gap: 20px; gap: 20px;
}
.vgrid-msg { grid-column: 1 / -1; text-align: center; color: #e5e5e5; padding: 40px 0; }

.vcard {
	display: block; width: 100%; margin: 0; padding: 0; text-align: left;
	font: inherit; color: inherit; cursor: pointer;
	background: #222; border: 0; border-radius: 4px; overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vcard:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px #A7D019, 0 4px 10px rgba(0, 0, 0, 0.7); }
.vcard:focus { outline: 2px solid #A7D019; outline-offset: 2px; }
.vcard:focus:not(:focus-visible) { outline: none; } /* no ring after a mouse click */

.vthumb { position: relative; display: block; padding-top: 56.25%; background: #000; overflow: hidden; }
.vthumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.vthumb .vplay {
	position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
	border-radius: 50%; background: rgba(0, 0, 0, 0.55); border: 2px solid #fff;
	opacity: 0.85; transition: background 0.15s ease, opacity 0.15s ease;
}
.vthumb .vplay:after {
	content: ""; position: absolute; left: 21px; top: 15px;
	border-style: solid; border-width: 12px 0 12px 18px; border-color: transparent transparent transparent #fff;
}
.vcard:hover .vplay { background: #A7D019; opacity: 1; }
.vcard:hover .vplay:after { border-left-color: #333; }

/* placeholder when there's no thumbnail (or it fails to load) */
.vthumb.vnothumb { background: #1b1b1b url(../../Images/sub-content.png) repeat; }
.vthumb.vnothumb img { display: none; }
.vthumb.vnothumb:before {
	content: "s a m u l a n d"; position: absolute; left: 0; right: 0; bottom: 12px; text-align: center;
	font-family: 'Russo One', sans-serif; font-size: 13px; color: #666;
}

.vinfo { display: block; padding: 10px 12px 12px; }
.vtitle { display: block; color: #3FF; font-size: 15px; line-height: 1.3; }
.vdesc {
	display: block; margin-top: 4px; color: #ccc; font-size: 12px; line-height: 1.4;
	overflow: hidden; max-height: 2.8em; /* 2 lines */
}

.vgrid-footer { text-align: center; margin: 10px 0 30px; font-size: 12px; }
.vgrid-footer a { color: #888; }
.vgrid-footer a:hover { color: #A7D019; }

/* ---- lightbox ---- */
.vlb {
	position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2000;
	background: rgba(0, 0, 0, 0.88);
	display: -webkit-box; display: flex; align-items: center; justify-content: center;
}
.vlb[hidden] { display: none; }
.vlb-dialog {
	position: relative; background: #111; border: 1px solid #333; border-radius: 4px;
	box-shadow: 0 0 30px #000;
	width: 1100px; max-width: 92vw;
	max-width: min(92vw, calc((100vh - 150px) * 16 / 9));
}
.vlb-frame { position: relative; padding-top: 56.25%; background: #000; }
.vlb-frame iframe, .vlb-frame video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vlb-caption { padding: 10px 14px 12px; }
.vlb-title { margin: 0; font-size: 17px; font-weight: normal; color: #3FF; }
.vlb-desc { margin: 4px 0 0; font-size: 13px; color: #ccc; }
.vlb-desc:empty { display: none; }
.vlb-close {
	position: absolute; top: -16px; right: -16px; z-index: 1;
	width: 36px; height: 36px; padding: 0; border-radius: 50%;
	border: 2px solid #fff; background: #222; color: #fff;
	font: bold 22px/30px Arial, sans-serif; text-align: center; cursor: pointer;
}
.vlb-close:hover { background: #A7D019; color: #333; border-color: #A7D019; }
.vlb-close:focus { outline: 2px solid #A7D019; outline-offset: 2px; }
.vlb-close:focus:not(:focus-visible) { outline: none; }
body.vlb-open { overflow: hidden; }

/* ---- small screens ---- */
@media (max-width: 600px) {
	.menucostumes { margin-top: 10px; margin-bottom: 16px; }
	#nav { float: none; padding: 0 0 0 4px; }
	#nav li { margin: 4px 0 0 6px; }
	#nav li a { padding: 6px 7px; }
	.vgrid { grid-template-columns: 1fr; padding: 0 12px 12px; grid-gap: 14px; gap: 14px; }
	.vlb-dialog { max-width: 100vw; width: 100vw; border-radius: 0; border-left: 0; border-right: 0; }
	.vlb-close { top: -44px; right: 8px; }
}
