* { box-sizing:border-box; }

.tiles-wrapper {
  margin: 0 auto;
  padding: 0 20px;
  max-width:1280px;
}

.tiles-grid {
display: grid;
grid-template-columns: repeat(3,1fr);
  padding: 1rem 0;
  gap:2rem;
}

@media all and (max-width:768px) {
 .tiles-grid {
    grid-template-columns: 1fr;
    gap: 20px; /* Reduced gap on mobile */
  }
}

.tiles-single {
    background: #ffffff;
    border-radius: 24px;
    display: flex;
  flex-direction: column;
  box-shadow: rgba(0,0,0,0.08) 1px 2px 2px;
    /* flex: 1;
     
    gap: 16px;
  position:relative;
  /* padding: 32px; */
}

.tiles-image { padding: 1.5rem 0 .75rem 1.75rem; }

.tiles-image img {
    border-radius: 240px 0 0 240px;
    height: 100%;
    width: 100%;
    object-fit: cover;
  aspect-ratio: 16 / 9;
  
}

.tiles-content {
  padding: 1rem 1.5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height:100%;
}

.tertiary_btn { 
  text-decoration:none !important; 
}

/* .tiles-content {
    flex: 1;
    padding: 0 1.5rem 2rem 1.5rem;
      display: flex;
    flex-direction: column;
    justify-content: space-between;
}
*/

.tiles-title {
    color: #233065;
    font-family: Lato;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 18px;
}
.tertiary_btn {
  line-height:1.25;
font-size: 14px;
    padding: 7px 21px;
  border: 0;
}

.video-container {
  position: relative;
  /* overflow: hidden; */
  display:flex;
  flex-direction: column;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, .05);
  width: 100%;
  margin: 0 auto;
}

/* ========================================
   Consistent 16:9 Aspect Ratio
   ======================================== */
.video-lazy-grid {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio (9 / 16 = 0.5625) */
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  z-index: 0;
}

.video-container:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
  cursor:pointer;
}

.video-lazy-grid .video-thumbnail,
.video-lazy-grid iframe,
.video-lazy-grid video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem 1rem 0 0;
  display: block;
  transition: opacity 0.3s ease;
}

/* When playing, disable hover/clicks */
.video-lazy-grid.playing {
  cursor: default;
}

/* When playing, disable hover/clicks */
.video-lazy-grid.playing {
  cursor: default;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 90px !important;
  height: 90px !important;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
  opacity: 1;
}

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.video-modal.active {
  display: block;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21,28,60,0.9);
}

.video-modal-content {
  position: relative;
  max-width: 960px;
  width: 90%;
  margin: 5vh auto;
  background: #000;
  aspect-ratio: 16 / 9;
  border-radius:1.5rem;
}

.video-modal-player { 
height:100%;
}

.video-modal-player iframe {
  width: 100%;
  height: 100%;
  border-radius:1.5rem;
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 32px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}
