/* ===== Home: photo sections "Our workspace" and "Our team" (static build) ===== */
.gallery-section {
    position: relative;
    padding: 80px 0 40px;
    color: #2f2f2f;
}
.gallery-section__band {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 420px;
    background: #f6f6f6;
}
.gallery-section .title {
    font-family: Roboto;
    font-weight: 700;
    font-size: 22px;
    line-height: 30px;
    letter-spacing: 5px;
    margin: 0;
}
.gallery-section .sub-title {
    font-family: Roboto;
    font-weight: 300;
    font-size: 18px;
    line-height: 30px;
    padding: 8px 0 45px;
    max-width: 760px;
    margin: 0 auto;
}
.gallery-section__button {
    text-align: center;
    padding-top: 40px;
}
.gallery-section__button .btn {
    float: none !important;
    display: inline-block;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    gap: 12px;
}
.gallery-grid__item {
    position: relative;
    overflow: hidden;
    margin: 0;
    border-radius: 6px;
    background: #e8e8e8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.gallery-grid__item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}
.gallery-grid__item:hover img {
    transform: scale(1.05);
}
.gallery-grid__item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 20px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
    color: #fff;
    font-family: Roboto;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.gallery-grid__item figcaption:before {
    content: "";
    display: block;
    width: 30px;
    height: 3px;
    border-radius: 3px;
    margin-bottom: 8px;
    background-color: #fc685f;
}
.gallery-grid__item--a { grid-area: a; }
.gallery-grid__item--b { grid-area: b; }
.gallery-grid__item--c { grid-area: c; }
.gallery-grid__item--d { grid-area: d; }
.gallery-grid__item--e { grid-area: e; }

/* --- Our workspace: tall photos on the sides, wide one on top in the middle --- */
.gallery-grid--workspace {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 270px;
    grid-template-areas:
        "a b b c"
        "a d e c";
}
.gallery-grid--workspace .gallery-grid__item--a img { object-position: 50% 30%; }
.gallery-grid--workspace .gallery-grid__item--c img { object-position: 30% 55%; }

/* --- Our team: big group photo + tall photo, three photos below --- */
.gallery-grid--team {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 215px 215px 250px;
    grid-template-areas:
        "a a a a e e"
        "a a a a e e"
        "b b c c d d";
}
.gallery-grid--team .gallery-grid__item--a img { object-position: 50% 40%; }
.gallery-grid--team .gallery-grid__item--b img { object-position: 50% 35%; }
.gallery-grid--team .gallery-grid__item--d img { object-position: 45% 40%; }

/* tablets */
@media (max-width: 991px) {
    .gallery-grid--workspace {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
        grid-template-areas:
            "b b"
            "a d"
            "a e"
            "c c";
    }
    .gallery-grid--team {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
        grid-auto-rows: 220px;
        grid-template-areas:
            "a a"
            "a a"
            "e b"
            "e c"
            "d d";
    }
}
/* phones */
@media (max-width: 767px) {
    .gallery-section {
        padding: 50px 0 20px;
    }
    .gallery-section__band {
        height: 300px;
    }
    .gallery-section .sub-title {
        font-size: 16px;
        line-height: 26px;
        padding-bottom: 30px;
    }
    .gallery-grid {
        gap: 8px;
    }
    .gallery-grid--workspace {
        grid-auto-rows: 150px;
    }
    /* group photo keeps its 3:2 shape so nobody at the edges is cut off */
    .gallery-grid--team {
        grid-auto-rows: auto;
        grid-template-rows: auto 150px 150px 200px;
        grid-template-areas:
            "a a"
            "e b"
            "e c"
            "d d";
    }
    .gallery-grid--team .gallery-grid__item--a {
        aspect-ratio: 3 / 2;
    }
    .gallery-grid__item figcaption {
        padding: 30px 12px 10px;
        font-size: 12px;
    }
}

/* ===== Home: "Our partners" logo row (Amazon removed, 4 logos evenly spaced) ===== */
.partners-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 30px 20px;
}
.partners-row__item {
    flex: 0 0 auto;
}
.partners-row__item img {
    display: block;
    height: 30px;
    width: auto;
}
@media (max-width: 767px) {
    .partners-row {
        margin-top: 20px;
    }
    .partners-row__item {
        flex: 0 0 40%;
    }
    .partners-row__item img {
        height: 22px;
        margin: 0 auto;
    }
}
