/* Project banners
   Shared blue background + per-project icon + live text.
   Markup:
     <a href="#id" id="id" class="project-banner">
         <img class="project-banner__icon" src="img/banners/icons/id.png" alt="">
         <h3 class="project-banner__title">Project Name</h3>
     </a>
   Two-line titles: add <br> in the title and the class project-banner--two-line.
   Long single-line titles: override the size with style="--banner-title-size: 4.5cqw".
   All sizes are in cqw (percent of banner width) so the banner scales like an image. */

@font-face {
    font-family: "Banner Sans";
    src: url("../fonts/DejaVuSans-Bold-subset.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.project-banner {
    container-type: inline-size;
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 6 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #0a4fd6 url("../img/banners/background.jpg") center / cover no-repeat;
    text-decoration: none;
}

.project-banner:hover,
.project-banner:focus {
    text-decoration: none;
}

.project-banner__icon {
    position: absolute;
    left: 4.67cqw;
    top: 50%;
    width: 10.67cqw;
    height: 10.67cqw;
    object-fit: contain;
    transform: translateY(-50%);
}

.project-banner__title {
    position: absolute;
    left: 20.13cqw;
    right: 2cqw;
    top: 48%;
    margin: 0;
    transform: translateY(-50%);
    font-family: "Banner Sans", "DejaVu Sans", Verdana, sans-serif;
    font-weight: 700;
    font-size: var(--banner-title-size, 5cqw);
    line-height: 1.15;
    letter-spacing: 0;
    color: #fff;
    white-space: nowrap;
    text-shadow:
        0.03em 0.05em 0.08em rgba(0, 20, 70, 0.55),
        0 0 0.18em rgba(0, 30, 110, 0.35);
}

.project-banner--two-line .project-banner__title {
    font-size: var(--banner-title-size, 4cqw);
    line-height: 1.2;
}

/* Soft white glow for icons that blend into the blue background */
.project-banner__icon--glow {
    filter: drop-shadow(0 0 0.5cqw rgba(255, 255, 255, 0.9)) drop-shadow(0 0 1.2cqw rgba(255, 255, 255, 0.5));
}
