/* Unique Namespace: yt-slider- */

.yt-slider-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  font-family: system-ui, -apple-system, sans-serif;
  overflow: hidden;
  width: 100%;
  display: block;
}

.yt-slider-main-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.yt-slider-heading-block {
  text-align: center;
  margin-bottom: 40px;
}

.yt-slider-heading-block h2 {
  font-size: 2.5rem;
  color: #1a1a1a;
  margin-bottom: 10px;
  font-weight: 700;
}

.yt-slider-heading-block p {
  font-size: 1.1rem;
  color: #666;
}

/* VIEWPORT CONTAINER */
.yt-slider-view-window {
  width: 100%;
  position: relative;
  display: block;
}

/* TRACK RUNNING HORIZONTALLY */
.yt-slider-track-flex {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  
  gap: 24px !important;
  padding: 15px 5px 30px 5px !important;
  
  overflow-x: scroll !important;
  scroll-behavior: smooth !important;
  -webkit-overflow-scrolling: touch !important;
  scroll-snap-type: x mandatory !important;
  
  scrollbar-width: none !important; 
}

.yt-slider-track-flex::-webkit-scrollbar {
  display: none !important; 
}

/* ULTRA-SAFE CARD SIZES */
.yt-slider-item-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  
  flex: 0 0 100% !important; 
  min-width: 280px !important; 
  max-width: 380px !important;
  
  scroll-snap-align: center !important; 
  box-sizing: border-box;
}

.yt-slider-item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Tablet Setup (2 items onscreen) */
@media (min-width: 640px) {
  .yt-slider-item-card {
    flex: 0 0 calc(50% - 12px) !important;
    scroll-snap-align: start !important;
  }
}

/* Desktop Setup (3 items onscreen) */
@media (min-width: 1024px) {
  .yt-slider-item-card {
    flex: 0 0 calc(33.333% - 16px) !important;
    scroll-snap-align: start !important;
  }
}

/* VIDEO DIMENSIONS */
.yt-slider-media-box {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.yt-slider-media-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-slider-text-box {
  padding: 24px;
}

.yt-slider-text-box h3 {
  font-size: 1.15rem;
  color: #222;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.yt-slider-text-box p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
  font-style: italic;
}

/* --- NAVIGATION ARROW STYLING --- */
.yt-slider-nav-btn {
  position: absolute;
  top: 40%;
  /*transform: translateY(-50%);*/
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border: 1px solid #ddd;
  width: 0px;
  height: 44px;
  border-radius: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.yt-slider-nav-btn:active {
  background: #ffffff;
  transform: scale(0.95);
}

.yt-slider-prev-btn {
  left: -85px;
}

.yt-slider-next-btn {
  right: -73px;
}

/* Adjust button placement on tiny mobile screens so they stay inside */
@media (max-width: 600px) {
  .yt-slider-prev-btn { left: 5px; }
  .yt-slider-next-btn { right: 5px; }
  .yt-slider-nav-btn { background: rgba(255, 255, 255, 0.95); width: 38px; height: 38px; }
}



.gallery-class{
    position: absolute;
    width: 100%;
    height: 100%;
    margin:10px;
    top: 0;
    left: 0;
    z-index: 50;
    object-fit: fill;
}

.close{
    position: absolute;
    top: 30px;
    right: 30px;
    color: red;
    text-decoration: dotted;
    background: white;
    padding-inline: 10px;
    border-radius: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.close:hover{
    transform: scale(1.1);
    cursor: pointer;
    background: gray;
    color:white;
}
.close:active{
    transform: scale(0.95);
    background: darkgreen;
    color: white;
}












