/* Projects, articles, publications, logo walls and the contact page. Loaded after style.css. */

/* Tiles with the name on the picture: a dark ground keeps the white name readable while the picture loads
   or when a post has none. */
.barami-tile {
    background: #2b2926;
}

/* On phones every tile is a full-width row, so it is shorter; and the live titles are longer than the
   design's sample ones, so the big page title steps down. The selectors outweigh the utility classes. */
@media screen and (max-width: 767px) {
    a.barami-tile.project-card {
        height: 340px;
    }

    h1.barami-title {
        font-size: 30px;
        letter-spacing: 4px;
        line-height: 1.25;
    }
}

/* Gallery pictures keep their own proportions. */
.barami-lightbox-trigger img {
    display: block;
}

/* Cards of the "related" blocks: on phones the picture is not a full screen high. */
@media screen and (max-width: 767px) {
    .barami-related-card .product-item img,
    .barami-related-card .product-item__media > div {
        height: 320px;
    }
}

/* A link styled with the design's animated line does not also get the editor-content underline. */
.barami-content a.animated-link {
    text-decoration: none;
}

/* Logo walls: calm white tiles with a thin border; logos drawn for dark grounds sit on a dark tile. */
.barami-logo-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 2;
    padding: 9% 11%;
    background: #fff;
    border: 1px solid rgba(26, 26, 26, 0.12);
    transition: border-color 0.5s ease;
}

.barami-logo-tile:hover {
    border-color: rgba(26, 26, 26, 0.45);
}

.barami-logo-tile--dark {
    background: #161616;
    border-color: #161616;
}

.barami-logo-tile > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.barami-logo-tile img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Embedded pages (the Waze map, an outside article): a rounded frame like the picture tiles. */
.barami-frame {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(26, 26, 26, 0.12);
    background: #f4f2ee;
}

.barami-frame iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 70vh;
    min-height: 420px;
    border: 0;
}

.barami-frame--map iframe {
    height: 450px;
    min-height: 0;
}

/* Contact page: the form and the details come as one block of page content. */
.barami-contact-details .contact-box {
    margin-bottom: 48px;
}

.barami-contact-details .row {
    gap: 32px 48px;
}
