/* =====================================================
   AVANTHY — GALERIA PROFISSIONAL DE MODELOS
   ===================================================== */

.avt-model-gallery,
.avt-model-gallery * {
    box-sizing: border-box;
}

.avt-model-gallery {
    position: relative;
    overflow: hidden;
    padding: 96px 0;
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(0, 101, 163, 0.09),
            transparent 38%
        ),
        #f5f8fc;
}

.avt-gallery-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.avt-gallery-header {
    width: min(760px, 100%);
    margin: 0 auto 44px;
    text-align: center;
}

.avt-gallery-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
    color: #0065a3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.avt-gallery-label::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: #ff6600;
}

.avt-gallery-header h2 {
    margin: 0 0 17px;
    color: #00234d;
    font-family: Poppins, Arial, sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.035em;
}

.avt-gallery-header p {
    max-width: 690px;
    margin: 0 auto;
    color: #5f6d80;
    font-size: 16px;
    line-height: 1.75;
}

.avt-gallery-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.avt-gallery-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 35, 77, 0.1);
    border-radius: 21px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(0, 35, 77, 0.09);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.avt-gallery-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 102, 0, 0.42);
    box-shadow: 0 26px 60px rgba(0, 35, 77, 0.14);
}

.avt-gallery-image {
    position: relative;
    display: block;
    height: 230px;
    overflow: hidden;
    background: #e7edf4;
    color: inherit;
    text-decoration: none;
}

.avt-gallery-image::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 13px;
    left: 15px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6600;
    box-shadow:
        14px 0 0 #d8dee7,
        28px 0 0 #d8dee7;
}

.avt-gallery-image::after {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    height: 34px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 35, 77, 0.08);
}

.avt-gallery-image img {
    width: 100%;
    height: 100%;
    padding-top: 34px;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.35s ease;
}

.avt-gallery-card:hover .avt-gallery-image img {
    transform: scale(1.035);
}

.avt-gallery-image > span {
    position: absolute;
    z-index: 3;
    right: 16px;
    bottom: 16px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(0, 35, 77, 0.9);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.avt-gallery-card:hover .avt-gallery-image > span {
    opacity: 1;
    transform: translateY(0);
}

.avt-gallery-content {
    padding: 24px 24px 27px;
}

.avt-gallery-category {
    display: inline-flex;
    margin-bottom: 13px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(0, 101, 163, 0.09);
    color: #0065a3;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.avt-gallery-content h3 {
    margin: 0 0 10px;
    color: #00234d;
    font-family: Poppins, Arial, sans-serif;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.avt-gallery-content p {
    min-height: 74px;
    margin: 0 0 20px;
    color: #647184;
    font-size: 14px;
    line-height: 1.65;
}

.avt-gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00234d;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.avt-gallery-link span {
    color: #ff6600;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.avt-gallery-link:hover span {
    transform: translateX(4px);
}

.avt-gallery-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 42px;
    text-align: center;
}

.avt-gallery-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 12px;
    background: #ff6600;
    box-shadow: 0 13px 29px rgba(255, 102, 0, 0.25);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.avt-gallery-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 17px 36px rgba(255, 102, 0, 0.34);
}

.avt-gallery-button span {
    font-size: 19px;
}

.avt-gallery-footer small {
    margin-top: 13px;
    color: #7b8796;
    font-size: 12px;
}

/* TABLET */

@media (max-width: 980px) {
    .avt-gallery-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .avt-gallery-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 12px);
        justify-self: center;
    }
}

/* MOBILE */

@media (max-width: 700px) {
    .avt-model-gallery {
        padding: 68px 0 72px;
    }

    .avt-gallery-container {
        width: 100%;
    }

    .avt-gallery-header {
        margin-bottom: 31px;
        padding: 0 22px;
        text-align: left;
    }

    .avt-gallery-label {
        margin-bottom: 14px;
        font-size: 10px;
    }

    .avt-gallery-header h2 {
        margin-bottom: 14px;
        font-size: 31px;
        line-height: 1.15;
    }

    .avt-gallery-header p {
        font-size: 14px;
        line-height: 1.7;
    }

    .avt-gallery-track {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        padding: 0 22px 18px;
        scroll-padding-left: 22px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .avt-gallery-track::-webkit-scrollbar {
        display: none;
    }

    .avt-gallery-card,
    .avt-gallery-card:last-child {
        flex: 0 0 84%;
        width: auto;
        max-width: 350px;
        grid-column: auto;
        scroll-snap-align: start;
    }

    .avt-gallery-image {
        height: 205px;
    }

    .avt-gallery-image > span {
        display: none;
    }

    .avt-gallery-content {
        padding: 21px 20px 23px;
    }

    .avt-gallery-content h3 {
        font-size: 19px;
    }

    .avt-gallery-content p {
        min-height: 0;
        font-size: 13px;
    }

    .avt-gallery-footer {
        margin-top: 25px;
        padding: 0 22px;
    }

    .avt-gallery-button {
        width: 100%;
        max-width: 420px;
    }
}
