/* Highlight Tiles (content-highlight-tiles.php). */

/* 12-column grid; rows are 112px tall so tiles can be different heights */
.highlight-tiles-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 112px;
  gap: 18px;
}

.highlight-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background-color: #1d1c1a;
  color: #f2eee6;
}
.highlight-tile:hover {
  color: #f2eee6;
}

/* Sizes */
.highlight-tile-large {
  grid-column: span 7;
  grid-row: span 5;
}
.highlight-tile-large-narrow {
  grid-column: span 5;
  grid-row: span 5;
}
.highlight-tile-half {
  grid-column: span 6;
  grid-row: span 4;
}
.highlight-tile-medium {
  grid-column: span 4;
  grid-row: span 4;
}
.highlight-tile-wide {
  grid-column: span 12;
  grid-row: span 3;
}

/* Photo zooms in slowly on hover */
.highlight-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.highlight-tile:hover img {
  transform: scale(1.045);
}

/* Shading behind the text */
.highlight-tile:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 9, 0.85));
}

.highlight-tile-text {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 20px;
}
.highlight-tile-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
  color: #f2eee6;
}
.highlight-tile-text p {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(242, 238, 230, 0.8);
}

/* "Case study →" in the bottom right corner */
.highlight-tile-corner {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  font-size: 13px;
  font-weight: 600;
}
.highlight-tile-has-corner .highlight-tile-text {
  right: 130px;
}

/* Links and button under the tiles */
.highlight-tiles-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}
.highlight-tiles-links a {
  transition: color 0.2s;
}
.highlight-tiles-links a:hover {
  color: #b45f06;
}
.highlight-tiles-links i {
  margin: 0 0.5em;
  font-style: normal;
  opacity: 0.6;
}


/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .highlight-tiles-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .highlight-tile-large,
  .highlight-tile-large-narrow,
  .highlight-tile-half,
  .highlight-tile-medium,
  .highlight-tile-wide {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3.4;
  }
  .highlight-tile-title {
    font-size: 26px;
  }
  .highlight-tile-corner {
    display: none;
  }
  .highlight-tile-has-corner .highlight-tile-text {
    right: 24px;
  }
}


/* =====  Cards layout: photo with tags, title and text below  ======== */

.highlight-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.highlight-card {
  display: block;
  color: #100f0e;
}
a.highlight-card:hover {
  color: #100f0e;
}
.highlight-card-photo {
  position: relative;
  aspect-ratio: 4 / 3.3;
  overflow: hidden;
  border-radius: 2px;
  background-color: #222222;
}
.highlight-card-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.highlight-card:hover .highlight-card-photo img {
  transform: scale(1.045);
}
.highlight-card-photo .photo-tags {
  top: 14px;
  left: 14px;
}
.highlight-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.highlight-card-row h3 {
  font-size: 25px;
  white-space: nowrap;
}
.highlight-card-go {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: #b45f06;
}
.highlight-card p {
  margin: 4px 0 0;
  font-size: 14.5px;
}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
  .highlight-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .highlight-cards {
    grid-template-columns: 1fr;
  }
  .highlight-card-row h3 {
    white-space: normal;
  }
}


/* =====  Banners layout: wide photos two per row  ======== */

.highlight-banners-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.highlight-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.highlight-banner {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border-radius: 2px;
  background-color: #222222;
  color: #f2eee6;
}
a.highlight-banner:hover {
  color: #f2eee6;
}
.highlight-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  transition: transform 0.8s, filter 0.3s;
}
.highlight-banner:hover img {
  transform: scale(1.04);
  filter: brightness(0.72);
}
.highlight-banner-text {
  position: absolute;
  z-index: 2;
  left: 30px;
  right: 30px;
  bottom: 26px;
}
.highlight-banner-text .eyebrow {
  color: #cbc4bc;
}
.highlight-banner-text b {
  display: block;
  margin-top: 8px;
  font-family: "Charpentier", "Garamond Fill", Georgia, serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.05;
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
  .highlight-banners {
    grid-template-columns: 1fr;
  }
  .highlight-banner-text b {
    font-size: 30px;
  }
}
