/* Samuland thumbnail card grid, shared by costumes.aspx and Droids.aspx.
   Same look as the video grid (Videos/css/video-grid.css): tiled dark background,
   Russo One logo, uppercase menu with the green (#A7D019) hover, dark cards with
   cyan (#3FF) titles, and responsive auto-fill columns (1 to 2 on phones). */

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 before and as Videos/index.html) ---- */
.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 ---- */
.cgrid {
	max-width: 1200px; margin: 0 auto; padding: 0 20px 30px;
	display: -ms-grid; display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	grid-gap: 20px; gap: 20px;
}

.ccard {
	position: relative; display: block; margin: 0; padding: 0;
	background: #222; 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;
}
.ccard-link { display: block; color: inherit; text-decoration: none; }
/* the whole card is clickable (the link stretches over it); the credit link sits above */
.ccard-link:after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; }
.ccard:hover { transform: translateY(-2px); box-shadow: 0 0 0 3px #A7D019, 0 4px 10px rgba(0, 0, 0, 0.7); }
.ccard-link:focus { outline: none; }
.ccard-link:focus:after { box-shadow: inset 0 0 0 3px #A7D019; border-radius: 4px; }
.ccard-link:focus:not(:focus-visible):after { box-shadow: none; }

.cthumb { position: relative; display: block; padding-top: 66.67%; background: #000; overflow: hidden; }
.cthumb img {
	position: absolute; top: 0; left: 0; width: 100%; height: 100%;
	object-fit: cover; border: 0; transition: transform 0.25s ease;
}
.ccard-link:hover .cthumb img { transform: scale(1.04); }
.cthumb .cgo {
	position: absolute; right: 10px; bottom: 10px; z-index: 0;
	padding: 4px 9px; border-radius: 3px;
	background: rgba(0, 0, 0, 0.6); color: #fff;
	font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
	opacity: 0; transition: opacity 0.15s ease, background 0.15s ease;
}
.ccard:hover .cgo { opacity: 1; background: #A7D019; color: #333; }

.cinfo { display: block; padding: 10px 12px 12px; }
.ctitle { display: block; margin: 0; color: #3FF; font-size: 15px; font-weight: normal; line-height: 1.3; }
.cdesc { display: block; margin: -8px 0 0; padding-top: 0; color: #ccc; font-size: 12px; line-height: 1.45; }
.cdesc a { position: relative; z-index: 2; color: #ccc; text-decoration: underline; }
.cdesc a:hover { color: #A7D019; }

/* cards without a gallery yet */
.ccard.csoon { cursor: default; }
.ccard.csoon:hover { transform: none; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); }
.cbadge {
	display: inline-block; margin-top: 6px; padding: 2px 7px; border-radius: 3px;
	border: 1px solid #555; color: #aaa; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* ---- small screens: 2 columns on phones, 1 on very narrow ones ---- */
@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; }
	.cgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); padding: 0 12px 16px; grid-gap: 12px; gap: 12px; }
	.cinfo { padding: 8px 9px 10px; }
	.cdesc { margin-top: -6px; padding-top: 0; }
	.ctitle { font-size: 14px; }
	.cdesc { font-size: 11px; }
	.cthumb .cgo { display: none; }
}
