#BottomSpacer {
    display: block;
	height: 170px;
}

#VideoCategoryNav {
    display: inline-block;
	max-width: 800px;
}

.videoCatLinkWrapper {
	margin: 12px 12px 12px 12px;
	padding: 3px 3px 3px 3px;
	border: 3px solid #ffd764;
	background-color: #ffffff;
    display: inline-block;
	-webkit-border-radius: 12px 12px 12px 12px;
	-moz-border-radius: 12px 12px 12px 12px;
	border-radius: 12px 12px 12px 12px;
	cursor: pointer;
}

a.videoCatLink {
	color: white;
	display: inline-block;
	width: auto;
	background: #3d4049;
	margin: 0px 0px 0px 0px;
	padding: 5px 10px 5px 10px;
	cursor: pointer;
	-webkit-border-radius: 8px 8px 8px 8px;
	-moz-border-radius: 8px 8px 8px 8px;
	border-radius: 8px 8px 8px 8px;
}
a.videoCatLink:hover {
	background: #8d96a0;
}

.videoCat h2 {
    display: block;
	padding: 5px 5px 5px 5px;
	color: #ffffff;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
	background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(141, 150, 160, 1) 10%, rgba(141, 150, 160, 1) 90%, rgba(255, 255, 255, 0) 100%);
}

/* Modal base */
.yt-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 999999;
}

.yt-modal.is-open { display: block; }

.yt-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}

/* Dialog */
.yt-modal__dialog {
  position: relative;
  max-width: 960px;
  width: min(96vw, 960px);
  margin: 6vh auto 0 auto;
  padding: 0;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  overflow: hidden;
}

/* Responsive 16:9 wrapper */
.yt-modal__ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* modern */
}

/* Fallback if needed */
@supports not (aspect-ratio: 16 / 9) {
  .yt-modal__ratio::before {
    content: "";
    display: block;
    padding-top: 56.25%;
  }
  .yt-modal__ratio iframe {
    position: absolute;
    inset: 0;
  }
}

.yt-modal__ratio iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* Close button */
.yt-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px;
  line-height: 42px;
  text-align: center;
  z-index: 2;
}

.yt-modal__close:hover {
  background: rgba(255,255,255,0.22);
}

.yt-thumb-outer-wrapper {
	position: relative;
	display: inline-block;
	width: 480px;
	height: 360px;
	margin: 20px 20px 20px 20px;
	padding: 0px 0px 0px 0px;
	display: inline-block;
	overflow:hidden;
	border: 3px solid grey;
	border-radius:12px;
}
.yt-thumb-inner-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
	height: 100%;
	margin: 0px 0px 0px 0px;
	padding: 0px 0px 0px 0px;
	display: inline-block;
	overflow:hidden;
	border: 3px solid white;
	border-radius:11px;
}

.yt-thumb {
  display: block;
  width:100%;
  max-width:480px;            /* optional */
  aspect-ratio:16/9;          /* forces a true video shape */
  overflow:hidden;
  position: absolute;
  top: -50px;
  left: 0px;
/* 
  border-radius:12px;
 */
}

.yt-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;           /* crops top/bottom/side as needed */
  object-position:center;     /* try: 50% 45% if you want slightly up */
  display:block;
}

.yt-spacer {
	margin-top: 220px;
}

.yt-title {
	text-align: center;
	font-size: 16px;
	color: black;
	font-weight: bold;
	margin: 5px 5px 5px 5px;
}

.yt-description {
	text-align: left;
	font-size: 15px;
	color: grey;
	font-weight: normal;
	font-style: italic;
	margin: 5px 5px 0px 5px;
}

a.urllinks {
	font-size: 14px;
	color: red;
	font-style: italic;
	font-style: italic;
	margin: 5px 5px 5px 5px;
}



/* Small screens */
@media (max-width: 600px) {

	.yt-thumb-outer-wrapper {
		position: relative;
		display: inline-block;
		width: 88vw;
		height: auto;
		margin: 20px 10px 20px 0px;
		padding: 0px 0px 0px 0px;
		display: inline-block;
		overflow:hidden;
		border: 3px solid grey;
		border-radius:12px;
	}

	.yt-spacer {
		margin-top: 38vw;
	}

	.yt-modal__dialog {
		width: 96vw;
		margin-top: 10vh;
		border-radius: 12px;
	}
}


.videoCat { display: none; }
