@import "./css/fontawesome.min.css";
@import "./css/brands.min.css";
/*=- /Content/Layouts/Clean/stylesheets/media-ad-list.less -=*/









.media-ad-list {
  display: flex;
  gap: 0.5em;
}
/* GROUP 1 – BIG IMAGE */

.media-ad-group-1 {
  flex: 1.6;
  background-size: cover;
}
.media-ad-group-1 .media-ad-cell {
  height: 35rem;
  width: 100%;
}
/* GROUP 2 – 4 STACKED IMAGES */

.media-ad-group-2 {
  flex: 1.6;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 5px;
}
.media-ad-group-2 .media-ad-cell {
  width: 100%;
  height: 100%;
}
.media-ad-list {
  max-width: 1200px;
  margin: auto;
}
.media-ad {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  /* bottom */
  justify-content: flex-start;
  /* left */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
}
/* Overlay container */

.media-ad-content {
  opacity: 1;
  /* ALWAYS visible */
  margin: 0.75em;
  color: white;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* left */
  text-align: left;
  max-width: 80%;
}
/* Description text (bottom-left) */

.media-ad .description {
  font-size: 0.875em;
  margin-bottom: 0.25em;
}
/* Details block */

.media-ad-details {
  text-align: left;
  list-style-type: none;
}
.media-ad-details .title {
  font-size: 30px;
  font-weight: 700;
  text-transform: capitalize;
}
.media-ad-details .subtitle span {
  font-size: 15px;
  font-weight: 400;
}
.media-ad-details .subtitle strong {
  margin-top: 4px;
  display: block;
  font-weight: 700;
  font-size: 30px;
}
/* Button bottom-right */

.media-ad-button {
  white-space: nowrap;
  padding: 0.5em 1em;
  color: white;
  width: 79px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid white;
  background: #00205b;
  font-size: 12px;
  text-transform: capitalize;
}
/* Dark gradient for readability */

.media-ad::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
}
/* =========================
TABLET
========================= */

@media (max-width: 1118px) {
  .media-ad-list {
    flex-direction: column;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
  .media-ad-group-1 .media-ad-cell {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 26rem;
  }
  .media-ad-group-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
  }
}
/* =========================
MOBILE
========================= */

@media (max-width: 470px) {
  .media-ad-group-1 .media-ad-cell {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 22rem;
  }
  .media-ad-group-2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .media-ad-group-2 .media-ad-cell {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 180px;
  }
  .media-ad-details .title {
    font-size: 22px;
  }
  .media-ad-details .subtitle strong {
    font-size: 22px;
  }
}
/* =========================
SMALL MOBILE
========================= */

@media (max-width: 480px) {
  .media-ad-group-1 .media-ad-cell {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 200px;
  }
  .media-ad-group-2 .media-ad-cell {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 160px;
  }
}
