.hero-hook {
    margin-top: 8px;
    margin-bottom: 24px;

    font-family: "Manrope", sans-serif;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;

    color: var(--text-color);
}

.portfolio-section .section-title {
    margin-bottom: 4px;
}

.portfolio-section .hero-hook {
    margin-top: 0;
    margin-bottom: 22px;
}


/* =====================================
   БЛОКИ ПОРТФОЛІО
===================================== */

.portfolio-wrapper {
    margin-top: 20px;
}

.portfolio-section {
    text-align: left;
}

.portfolio-section:not(:first-child) {
    margin-top: 60px;
}

.portfolio-section p {
    margin-top: 5px;
    margin-bottom: 14px;
}

.portfolio-section p:last-of-type {
    margin-bottom: 30px;
}

/* =====================================
   ИКОНКИ РАЗДЕЛОВ ПОРТФОЛІО
===================================== */

.field-title--icon > .field-title-icon {
    display: inline-block;

    width: 17px;
    height: 17px;
    margin-top: 0;

    vertical-align: -0.15em;

    color: var(--text-color);
    opacity: 0.75;

    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;

    flex-shrink: 0;
}

.field-title--icon > .field-title-icon--filled {
    stroke: none;
}

/* =====================================
   СІТКА ЗОБРАЖЕНЬ ПОРТФОЛІО
===================================== */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 10px;
    align-items: start;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.portfolio-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        rgba(0,0,0,.18)
        url("../img/icons/search.svg")
        center center
        no-repeat;
    background-size: 42px;
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}

.portfolio-card:hover::after {
    opacity: 1;
}

.portfolio-card img {
    width: 100%;
    display: block;
}

.portfolio-card:hover {
    transform: translateY(-3px);
}

.portfolio-grid .portfolio-card:only-child {
    grid-column: 1 / -1;
    width: 70%;
}

.portfolio-grid .portfolio-card:only-child img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio-card {
    display: block;
    max-width: var(--card-width, 100%);
    margin-inline: auto;
}


/* ==========================================================================
   PORTFOLIO MOBILE GRID
   ========================================================================== */

@media (max-width: 600px) {

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: stretch;
        margin-bottom: 40px;
    }

    .portfolio-grid .portfolio-card:only-child {
        width: 100%;
    }

    .portfolio-card {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }

    .hero-hook {
        font-size: 16px;
        line-height: 1.25;
        margin-top: 6px;
        margin-bottom: 20px;
    }
}