/* =====================================================
   MEDIA PAGE
   ===================================================== */

/* =====================================================
   HERO
   ===================================================== */

.media-hero {
  min-height: 75vh;

  display: flex;

  align-items: flex-end;

  padding: 100px 7%;

  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.96), rgba(5, 7, 8, 0.45)),
    url("../images/media-hero.jpg") center / cover no-repeat;
}

.media-hero-content {
  max-width: 900px;
}

.media-hero h1 {
  margin: 0;

  font-size: clamp(55px, 8vw, 105px);

  line-height: 0.9;

  letter-spacing: -5px;
}

.media-hero h1 span {
  display: block;

  color: rgba(255, 255, 255, 0.35);
}

.media-hero-content > p:last-child {
  max-width: 600px;

  margin-top: 30px;

  color: rgba(255, 255, 255, 0.55);

  line-height: 1.8;
}

/* =====================================================
   FEATURED VIDEO
   ===================================================== */

.featured-media {
  padding: 140px 0;

  background: #090b0d;
}

.featured-media-grid {
  display: grid;

  grid-template-columns: 1.5fr 0.8fr;

  gap: 80px;

  align-items: center;
}

.featured-video {
  aspect-ratio: 16 / 9;

  background: #000;

  overflow: hidden;
}

.featured-video iframe {
  width: 100%;

  height: 100%;

  border: none;
}

.featured-video-content h2 span {
  display: block;

  color: rgba(255, 255, 255, 0.35);
}

.featured-video-content > p:not(.section-label) {
  max-width: 450px;

  margin: 25px 0;

  color: rgba(255, 255, 255, 0.4);

  line-height: 1.8;
}

.media-link {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  color: #ffffff;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 1px;

  text-transform: uppercase;
}

/* =====================================================
   MEDIA LIBRARY
   ===================================================== */

.media-library {
  padding: 140px 0;

  background: #0d1012;
}

.media-heading {
  margin-bottom: 50px;
}

.media-heading h2 span {
  display: block;

  color: rgba(255, 255, 255, 0.35);
}

/* =====================================================
   FILTERS
   ===================================================== */

.media-filters {
  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 55px;
}

.media-filter {
  padding: 12px 18px;

  border: 1px solid rgba(255, 255, 255, 0.1);

  background: transparent;

  color: rgba(255, 255, 255, 0.45);

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 1px;

  text-transform: uppercase;

  cursor: pointer;
}

.media-filter:hover,
.media-filter.active {
  background: #ffffff;

  color: #080a0c;

  border-color: #ffffff;
}

/* =====================================================
   VIDEO GRID
   ===================================================== */

.media-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
}

.media-card {
  background: #090b0d;

  border: 1px solid rgba(255, 255, 255, 0.07);

  overflow: hidden;

  transition: 0.3s ease;
}

.media-card:hover {
  transform: translateY(-5px);

  border-color: rgba(255, 255, 255, 0.15);
}

/* =====================================================
   VIDEO THUMBNAIL
   ===================================================== */

.media-thumbnail {
  position: relative;

  aspect-ratio: 16 / 9;

  background: #000;
}

.media-thumbnail iframe {
  width: 100%;

  height: 100%;

  border: none;
}

.media-category {
  position: absolute;

  bottom: 12px;

  left: 12px;

  padding: 6px 9px;

  background: rgba(0, 0, 0, 0.75);

  color: #ffffff;

  font-size: 7px;

  font-weight: 700;

  letter-spacing: 1px;
}

/* =====================================================
   VIDEO CONTENT
   ===================================================== */

.media-card-content {
  padding: 22px;
}

.media-card-content h3 {
  margin-bottom: 8px;

  font-size: 18px;
}

.media-card-content p {
  margin: 0;

  color: rgba(255, 255, 255, 0.35);

  font-size: 10px;

  line-height: 1.7;
}

/* =====================================================
   GALLERY
   ===================================================== */

.media-gallery {
  padding: 140px 0;

  background: #090b0d;
}

.media-gallery-heading {
  margin-bottom: 50px;
}

.media-gallery-heading h2 span {
  display: block;

  color: rgba(255, 255, 255, 0.35);
}
/* =====================================================
   PHOTO GALLERY
   ===================================================== */

/* .gallery-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
} */

.media-thumbnail img {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: contain;

    object-position: center;
}





/* =====================================================
   YOUTUBE CTA
   ===================================================== */

.youtube-cta {
  padding: 100px 0;

  background: #ffffff;

  color: #080a0c;
}

.youtube-cta-content {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 40px;
}

.youtube-cta .section-label {
  color: rgba(0, 0, 0, 0.4);
}

.youtube-cta h2 {
  color: #080a0c;

  margin: 0;
}

.youtube-cta h2 span {
  color: rgba(0, 0, 0, 0.3);
}

.youtube-button {
  display: inline-flex;

  align-items: center;

  gap: 12px;

  padding: 18px 24px;

  background: #080a0c;

  color: #ffffff;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 1px;

  text-transform: uppercase;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 900px) {
  .featured-media-grid {
    grid-template-columns: 1fr;

    gap: 50px;
  }

  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .youtube-cta-content {
    flex-direction: column;

    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .media-hero {
    min-height: 650px;

    padding: 70px 5%;
  }

  .media-hero h1 {
    font-size: 55px;

    letter-spacing: -3px;
  }

  .featured-media,
  .media-library,
  .media-gallery {
    padding: 90px 0;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    display: grid;

    grid-template-columns: 1fr;

    grid-template-rows: repeat(4, 220px);
  }

  .gallery-one,
  .gallery-four {
    grid-column: auto;

    grid-row: auto;
  }

  .youtube-cta {
    padding: 80px 0;
  }
}


/* PAGINATION AND SEARCH */
/* =====================================================
   MEDIA SEARCH
   ===================================================== */

.media-search {

    display: flex;

    align-items: center;

    gap: 12px;

    margin: 35px 0 25px;

    max-width: 650px;
}


.media-search-box {

    position: relative;

    flex: 1;

    display: flex;

    align-items: center;
}


.media-search-box > i {

    position: absolute;

    left: 16px;

    color: rgba(255,255,255,0.35);

    font-size: 12px;

    pointer-events: none;
}


.media-search-box input {

    width: 100%;

    height: 46px;

    padding: 0 42px;

    border: 1px solid rgba(255,255,255,0.1);

    outline: none;

    background: #090b0d;

    color: #ffffff;

    font-family: inherit;

    font-size: 11px;

    transition: 0.25s ease;
}


.media-search-box input::placeholder {

    color: rgba(255,255,255,0.3);
}


.media-search-box input:focus {

    border-color: rgba(255,255,255,0.35);

    background: #0b0e10;
}


/* Clear button */

.clear-media-search {

    position: absolute;

    right: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 20px;

    height: 20px;

    color: rgba(255,255,255,0.35);

    text-decoration: none;

    transition: 0.2s ease;
}


.clear-media-search:hover {

    color: #ffffff;
}


/* Search button */

.media-search > button {

    height: 46px;

    padding: 0 22px;

    border: 1px solid #ffffff;

    background: #ffffff;

    color: #080a0c;

    font-family: inherit;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    cursor: pointer;

    transition: 0.25s ease;
}


.media-search > button:hover {

    background: transparent;

    color: #ffffff;
}


/* =====================================================
   MEDIA PAGINATION
   ===================================================== */

.media-pagination {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 20px;

    margin-top: 55px;

    padding-top: 30px;

    border-top: 1px solid rgba(255,255,255,0.07);
}


.pagination-button {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 12px 17px;

    border: 1px solid rgba(255,255,255,0.12);

    background: transparent;

    color: #ffffff;

    text-decoration: none;

    font-size: 8px;

    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    transition: 0.25s ease;
}


.pagination-button:hover {

    background: #ffffff;

    color: #080a0c;

    border-color: #ffffff;
}


.pagination-page {

    min-width: 90px;

    text-align: center;

    color: rgba(255,255,255,0.4);

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 600px) {

    .media-search {

        flex-direction: column;

        align-items: stretch;

        width: 100%;

    }


    .media-search > button {

        width: 100%;

    }


    .media-pagination {

        gap: 10px;

    }


    .pagination-button {

        padding: 11px 12px;

    }


    .pagination-page {

        min-width: 75px;

        font-size: 8px;

    }

}


/* =========================================================
   MEDIA GALLERY
========================================================= */

.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 100%;
}


/* =========================================================
   CARD
========================================================= */

.media-gallery-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.13);
}


/* =========================================================
   SLIDER
========================================================= */

.media-gallery-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111;
}


/* Images */

.media-gallery-image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;
    transform: scale(1.03);

    transition:
        opacity 0.45s ease,
        transform 0.6s ease;
}

.media-gallery-image.active {
    opacity: 1;
    transform: scale(1);
}


/* =========================================================
   CATEGORY
========================================================= */

.media-gallery-category {
    position: absolute;
    top: 16px;
    left: 16px;

    padding: 7px 12px;

    background: rgba(0, 0, 0, 0.72);
    color: #fff;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;

    border-radius: 30px;

    backdrop-filter: blur(8px);
}


/* =========================================================
   ARROWS
========================================================= */

.media-gallery-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.55);
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    opacity: 0;

    transition:
        opacity 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;

    z-index: 5;
}

.media-gallery-slider:hover .media-gallery-arrow {
    opacity: 1;
}

.media-gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.85);
}

.media-gallery-prev {
    left: 14px;
}

.media-gallery-next {
    right: 14px;
}

.media-gallery-arrow:active {
    transform: translateY(-50%) scale(0.92);
}


/* =========================================================
   COUNTER
========================================================= */

.media-gallery-counter {
    position: absolute;

    right: 15px;
    bottom: 15px;

    padding: 6px 10px;

    background: rgba(0, 0, 0, 0.65);
    color: #fff;

    font-size: 12px;
    font-weight: 600;

    border-radius: 20px;

    backdrop-filter: blur(8px);

    z-index: 5;
}


/* =========================================================
   DOTS
========================================================= */

.media-gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;

    gap: 6px;

    padding: 12px 10px 2px;
}

.media-gallery-dot {
    width: 7px;
    height: 7px;

    padding: 0;
    border: none;

    border-radius: 50%;

    background: #d0d0d0;

    cursor: pointer;

    transition:
        width 0.25s ease,
        background 0.25s ease;
}

.media-gallery-dot.active {
    width: 20px;
    border-radius: 10px;
}


/* =========================================================
   CONTENT
========================================================= */

.media-gallery-content {
    padding: 18px 20px 22px;
}

.media-gallery-content h3 {
    margin: 0 0 8px;

    font-size: 19px;
    line-height: 1.3;

    color: #222;
}

.media-gallery-content p {
    margin: 0;

    font-size: 14px;
    line-height: 1.7;

    color: #666;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.no-media {
    grid-column: 1 / -1;

    text-align: center;
    padding: 50px 20px;

    color: #777;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .media-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .media-gallery-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .media-gallery-arrow {
        opacity: 1;

        width: 38px;
        height: 38px;
    }

    .media-gallery-content {
        padding: 16px 18px 20px;
    }

}
