/* ===== Videos page (UI like screenshot) ===== */

.ag-container{
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 24px;
}

.ag-page{
  background: #fff;
}

.ag-page-title{
  margin: 28px 0 20px;
  font-family: "Inria Serif", serif;
  font-weight: 400;
  font-size: 42px;
  letter-spacing: .5px;
  color: #111;
}

/* GRID 4 columns */
.ag-videos-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-bottom: 26px;
}

.ag-video-card__thumb{
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f2f2f2;
}
.ag-video-card__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ag-video-card__title{
  margin: 14px 0 6px;
  font-family: "Inria Serif", serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.ag-video-card__title a{
  color: #111;
  text-decoration: none;
}
.ag-video-card__title a:hover{
  text-decoration: underline;
}

.ag-video-card__date{
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: rgba(0,0,0,.5);
}

/* Load more button */
.ag-loadmore{
  display: flex;
  justify-content: center;
  padding: 18px 0 60px;
}
.ag-loadmore__btn{
  background: #2b2b2b;
  color: #fff;
  border: 0;
  padding: 14px 26px;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  letter-spacing: .8px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ag-loadmore__btn:hover{ opacity: .9; }
.ag-loadmore__btn.is-loading{ opacity: .65; cursor: default; }
.ag-loadmore__btn:disabled{ cursor: default; }

@media (max-width: 1100px){
  .ag-videos-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px){
  .ag-videos-grid{ grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .ag-page-title{ font-size: 34px; }
}
@media (max-width: 520px){
  .ag-videos-grid{ grid-template-columns: 1fr; }
  .ag-container{ padding: 0 16px; }
}


/* ===== VIDEO POPUP ===== */
.ag-video-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.ag-video-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);
}

.ag-video-modal__box{
  position: relative;
  max-width: 900px;
  width: calc(100% - 32px);
  margin: 5vh auto;
  background: #000;
  padding: 16px;
}

.ag-video-modal__content iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.ag-video-modal__close{
  position: absolute;
  top: -42px;
  right: 0;
  background: none;
  border: 0;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 600px){
  .ag-video-modal__box{
    margin: 12vh auto;
  }
}


.ag-video-card__thumb{
  position: relative;
}

.ag-video-card__thumb::after{
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: #fff;
  opacity: .85;
  pointer-events: none;
}