/* =========================================
   PORTFOLIO
========================================= */

.portfolio-page {
    width: 100%;
}


/* =========================================
   MENU CONTAINER
========================================= */

.commission-preview {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    margin-top: 35px;
    position: relative;
}

.commission-menu {
    position: relative;
    width: min(820px, 100%);
    padding: 55px 70px;

    border-radius: 22px;

    background:
        repeating-linear-gradient(
            0deg,
            #6f4934 0px,
            #6f4934 3px,
            #765039 3px,
            #765039 6px
        );

    box-shadow:
        0 18px 40px rgba(77, 50, 37, 0.16);

    overflow: visible;

    animation: cardPop 0.55s ease both;
}


/* =========================================
   CREAM PAPER INSERT
========================================= */

.commission-menu::before {
    content: "";

    position: absolute;
    inset: 14px;

    background: var(--cream);

    border-radius: 14px;

    box-shadow:
        inset 0 0 0 1px rgba(77, 50, 37, 0.08),
        0 4px 10px rgba(47, 28, 21, 0.08);

    z-index: 0;
}


/* Keep everything above the paper */

.commission-menu > * {
    position: relative;
    z-index: 1;
}


/* =========================================
   MENU HEADER
========================================= */

.menu-title {
    margin: 0;

    font-family: var(--heading-font);
    font-size: clamp(2rem, 4vw, 3rem);

    text-align: center;
    text-transform: uppercase;

    letter-spacing: 0.12em;

    color: var(--brown-dark);
}

.menu-title span {
    color: var(--brown-light);
}

.menu-subtitle {
    margin: 0px 0 0;

    font-size: 0.95rem;

    text-align: center;

    color: var(--brown);

    letter-spacing: 0.04em;
}


/* =========================================
   PORTFOLIO CATEGORIES
========================================= */

.portfolio-category {
    margin-top: 55px;
}

.portfolio-category:first-of-type {
    margin-top: 45px;
}


/* =========================================
   CATEGORY TITLE
========================================= */

.portfolio-category-title {
    margin: 0 0 18px;

    font-family: var(--heading-font);
    font-size: 1.35rem;

    text-align: center;
    text-transform: uppercase;

    letter-spacing: 0.1em;

    color: var(--brown-dark);
}


/* Little café-menu divider */

.portfolio-category-title::after {
    content: "✦";

    display: block;

    margin-top: 8px;

    font-family: var(--body-font);
    font-size: 0.7rem;

    color: var(--brown-light);
}


/* =========================================
   IMAGE ROW
========================================= */

.portfolio-gallery {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}


/* =========================================
   PORTFOLIO IMAGE
========================================= */

.gallery-item {
    display: block;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 10px;

    background: var(--cream-dark);

    border: 3px solid var(--cream-dark);

    box-shadow:
        0 5px 12px rgba(77, 50, 37, 0.10);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 20px rgba(77, 50, 37, 0.15);
}

.gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}


/* =========================================
   INFO CONTENT
========================================= */

.info-content {
    color: var(--brown);

    line-height: 1.7;
}

.info-content p {
    margin: 0 0 12px;
}

.info-content ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.info-content li {
    margin-bottom: 6px;
}


/* =========================================
   CARD ANIMATION
========================================= */

@keyframes cardPop {
    from {
        opacity: 0;
        transform:
            translateY(15px)
            scale(0.98);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .commission-menu {
        padding: 40px 35px;
    }

    .commission-menu::before {
        inset: 10px;
    }

    .portfolio-category {
        margin-top: 45px;
    }

    .portfolio-gallery {
        gap: 10px;
    }

    .portfolio-category-title {
        font-size: 1.2rem;
    }
}


@media (max-width: 480px) {

    .commission-menu {
        padding: 35px 25px;
    }

    .portfolio-gallery {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .portfolio-category-title {
        font-size: 1.05rem;
    }
}

.portfolio-animation {
    width: min(100%, 500px);
    height: auto;
}

.portfolio-animation-3 {
    width: min(100%, 500px);
    height: auto;
    margin-top: 20px;
}