/* Title: Styles for StartCtrl Featured Media (grid, overlays, lightbox) */
/* Default desktop: 3 columns */
.scfv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .scfv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
  .scfv-grid {
    grid-template-columns: 1fr !important;
  }
}


.scfv-card {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.scfv-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.scfv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.scfv-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}


/* Video container above background image but hidden initially */
.scfv-hover-player {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* When video is ready & playing */
.scfv-hover-player.scfv-video-visible {
  opacity: 1;
}

.scfv-hover-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;position: absolute;
  top: 0;
  left: 0;
}

.scfv-hover-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scfv-card:hover .scfv-hover-player,
.scfv-card:focus-within .scfv-hover-player,
.scfv-hover-player.playing {
  opacity: 1;
}

.scfv-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.scfv-card:hover .scfv-overlay { background: transparent; }
.scfv-card:hover .scfv-titlebox { opacity: 0; visibility: hidden; transition: opacity .3s ease; }
.scfv-titlebox { transition: opacity .3s ease; }


.scfv-titlebox {
  max-width: 80%;
}

.scfv-title {
  margin: 0;
  color: #fff;
  font-size: 3rem;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Title: Frontend logo styling */
.scfv-logo{
  max-width: 240px;
  width: 100%;
  height: auto;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

@media (max-width: 768px){
  .scfv-logo{ max-width: 180px; }
}

.scfv-subtitle {
  margin: .4em 0 0 0;
  color: #fff;
  font-size: 1.2rem;
  font-style: italic;
  opacity: .95;
}

.scfv-open {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
  z-index: 3;
}

.scfv-open:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.06);
}

.scfv-lightbox[hidden] {
  display: none !important;
}

.scfv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
}

.scfv-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.scfv-lightbox-dialog {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.scfv-player-slot {
  position: relative;
  width: min(1280px, 90vw);
  height: 720px;
  max-height: 90vh;
  background: #000;
  pointer-events: auto;
}

.scfv-player-slot iframe,
.scfv-player-slot>img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  background: #000;
}

.scfv-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  border: none;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  z-index: 1001;
}

.scfv-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.scfv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
 
  border-radius: 0;

  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001;
  pointer-events: auto;
}

.scfv-nav.prev {
  left: 16px;
}

.scfv-nav.next {
  right: 16px;
}

.scfv-nav:hover {
  background: rgba(255, 255, 255, 0.35);
}

body.scfv-lock {
  overflow: hidden;
}

.scfv-admin-thumbs img {
  border-radius: 0;
}