/*
|--------------------------------------------------------------------------
| Galeria - First Mobile
|--------------------------------------------------------------------------
*/

.igor-gallery {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 18%, rgba(196, 27, 27, 0.13), transparent 34%),
        radial-gradient(circle at 84% 70%, rgba(163, 23, 23, 0.11), transparent 38%),
        #090909;
}

.igor-gallery::before {
    background: #090909;
}

.igor-gallery::after {
    background: #050505;
}

.igor-gallery__texture {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.28;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, #000, transparent 76%);
}

.igor-gallery__container {
    position: relative;
    z-index: 5;
    width: 90%;
    max-width: 90%;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

/*
|--------------------------------------------------------------------------
| Cabeçalho centralizado
|--------------------------------------------------------------------------
*/

.igor-gallery__top {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 820px;
    margin-right: auto;
    margin-bottom: 34px;
    margin-left: auto;
    text-align: center;
}

.igor-gallery__top .igor-section-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.igor-gallery__top .igor-section-heading__eyebrow,
.igor-gallery__top .igor-section-heading__title,
.igor-gallery__top .igor-section-heading__text,
.igor-gallery__top .igor-eyebrow,
.igor-gallery__top .igor-section-title,
.igor-gallery__top .igor-section-text,
.igor-gallery__top p {
    display: block;
    width: 100%;
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.igor-gallery__top .igor-section-heading__eyebrow,
.igor-gallery__top .igor-eyebrow {
    display: inline-flex;
    justify-content: center;
    width: auto;
}

/*
|--------------------------------------------------------------------------
| Remove risquinho do título pequeno
|--------------------------------------------------------------------------
*/

.igor-gallery__top .igor-eyebrow::before,
.igor-gallery__top .igor-eyebrow::after,
.igor-gallery__top .igor-section-heading__eyebrow::before,
.igor-gallery__top .igor-section-heading__eyebrow::after,
.igor-gallery .igor-eyebrow::before,
.igor-gallery .igor-eyebrow::after,
.igor-gallery .igor-section-heading__eyebrow::before,
.igor-gallery .igor-section-heading__eyebrow::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    background: none !important;
}

/*
|--------------------------------------------------------------------------
| Filtros centralizados
|--------------------------------------------------------------------------
*/

.igor-gallery__filters {
    position: relative;
    z-index: 5;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    margin-right: auto;
    margin-bottom: 28px;
    margin-left: auto;
    padding: 2px 0 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.igor-gallery__filters::-webkit-scrollbar {
    display: none;
}

.igor-gallery__filter {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    overflow: hidden;
    border-radius: var(--igor-radius-full);
    color: rgba(255,255,255,0.72);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--igor-border);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transform: translate3d(0, 0, 0);
    transition:
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
        color 280ms ease,
        border-color 280ms ease,
        background 280ms ease,
        box-shadow 280ms ease;
}

.igor-gallery__filter::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0;
    background: linear-gradient(135deg, rgba(163, 23, 23, 0.94), rgba(196, 27, 27, 0.94));
    transition: opacity 280ms ease;
}

.igor-gallery__filter::after {
    content: "";
    position: absolute;
    top: -40%;
    bottom: -40%;
    left: -80%;
    z-index: -1;
    width: 55%;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-18deg) translateX(0);
    transition:
        opacity 280ms ease,
        transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.igor-gallery__filter:hover,
.igor-gallery__filter.is-active {
    color: var(--igor-white);
    border-color: rgba(196, 27, 27, 0.58);
    background: rgba(196, 27, 27, 0.14);
    box-shadow: 0 16px 42px rgba(196, 27, 27, 0.2);
    transform: translate3d(0, -2px, 0);
}

.igor-gallery__filter:hover::before,
.igor-gallery__filter.is-active::before {
    opacity: 1;
}

.igor-gallery__filter:hover::after {
    opacity: 1;
    transform: skewX(-18deg) translateX(330%);
}

.igor-gallery__filter.is-changing {
    pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| Grid / Cards centralizados
|--------------------------------------------------------------------------
*/

.igor-gallery__grid {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
    gap: 16px;
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.igor-gallery__item {
    display: none;
    width: 100%;
    opacity: 0;
    transform: translate3d(0, 14px, 0);
}

.igor-gallery__item.is-visible {
    display: block;
    animation: igorGalleryItemIn 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes igorGalleryItemIn {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.igor-gallery__button {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(320px, 92vw, 420px);
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid var(--igor-border);
    background: #111;
    box-shadow: 0 24px 80px rgba(0,0,0,0.42);
    cursor: pointer;
    transform: translate3d(0, 0, 0);
    transition:
        transform var(--igor-transition),
        border-color var(--igor-transition),
        box-shadow var(--igor-transition);
}

.igor-gallery__button:hover {
    transform: translate3d(0, -5px, 0);
    border-color: rgba(196, 27, 27, 0.42);
    box-shadow:
        0 30px 95px rgba(0,0,0,0.55),
        0 18px 70px rgba(196, 27, 27, 0.08);
}

.igor-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.34) contrast(1.08) saturate(0.86);
    transform: scale(1.01);
    transition:
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
        filter var(--igor-transition);
}

.igor-gallery__video-thumb {
    background: #111111;
}

.igor-gallery__button:hover .igor-gallery__image {
    transform: scale(1.07);
    filter: grayscale(0) contrast(1.08) saturate(1);
}

.igor-gallery__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.12) 42%, rgba(0,0,0,0.9) 100%),
        radial-gradient(circle at top right, rgba(196, 27, 27, 0.18), transparent 42%);
}

.igor-gallery__content {
    position: relative;
    z-index: 3;
    display: grid;
    gap: 10px;
    justify-items: flex-start;
    width: 100%;
    text-align: left;
}

.igor-gallery__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 1;
    min-height: 28px;
    padding: 0 11px;
    border-radius: var(--igor-radius-full);
    color: var(--igor-white);
    background: rgba(196, 27, 27, 0.16);
    border: 1px solid rgba(196, 27, 27, 0.34);
    box-shadow: 0 12px 34px rgba(196, 27, 27, 0.16);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}

.igor-gallery__title {
    display: block;
    order: 2;
    color: var(--igor-white);
    font-family: var(--igor-font-title);
    font-size: clamp(23px, 7.4vw, 34px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.igor-gallery__play {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: var(--igor-white);
    background: var(--igor-gradient-red);
    box-shadow: var(--igor-shadow-red);
    transition:
        transform var(--igor-transition),
        box-shadow var(--igor-transition);
}

.igor-gallery__button:hover .igor-gallery__play {
    transform: scale(1.08);
    box-shadow: 0 24px 80px rgba(196, 27, 27, 0.34);
}

.igor-gallery__play i {
    margin-left: 3px;
    font-size: 16px;
}

/*
|--------------------------------------------------------------------------
| Fallback vazio minimalista
|--------------------------------------------------------------------------
*/

.igor-gallery__empty {
    position: relative;
    z-index: 5;
    display: none;
    width: 100%;
    max-width: 100%;
    min-height: 220px;
    margin: 18px auto 0;
    padding: 36px 28px;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.72);
    background: transparent;
    text-align: center;
    box-shadow: none;
}

.igor-gallery__empty.is-visible {
    display: grid;
    place-items: center;
}

.igor-gallery__empty--main {
    margin-top: 0;
}

.igor-gallery__empty-card {
    display: grid;
    justify-items: center;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.igor-gallery__empty-icon {
    display: grid;
    place-items: center;
    width: auto;
    height: auto;
    margin-bottom: 18px;
    border: 0;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.86);
    background: transparent;
    box-shadow: none;
}

.igor-gallery__empty-icon i,
.igor-gallery__empty-icon span {
    display: block;
    color: inherit;
    font-size: 30px;
    line-height: 1;
}

.igor-gallery__empty-title {
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    color: #ffffff;
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.igor-gallery__empty-text {
    width: 100%;
    max-width: 520px;
    margin: 10px auto 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
    line-height: 1.65;
    font-weight: 500;
}

/*
|--------------------------------------------------------------------------
| Paginação responsiva centralizada
|--------------------------------------------------------------------------
*/

.igor-gallery__pagination {
    position: relative;
    z-index: 5;
    display: none;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin-top: 34px;
    margin-right: auto;
    margin-left: auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    text-align: center;
}

.igor-gallery__pagination::-webkit-scrollbar {
    display: none;
}

.igor-gallery__pagination.is-visible {
    display: flex;
}

.igor-gallery__page,
.igor-gallery__ellipsis {
    position: relative;
    isolation: isolate;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    overflow: hidden;
    border-radius: var(--igor-radius-full);
    color: rgba(255,255,255,0.72);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--igor-border);
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
}

.igor-gallery__page {
    cursor: pointer;
    transform: translate3d(0, 0, 0);
    transition:
        transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
        color 280ms ease,
        border-color 280ms ease,
        background 280ms ease,
        box-shadow 280ms ease,
        opacity 280ms ease;
}

.igor-gallery__page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0;
    background: linear-gradient(135deg, rgba(163, 23, 23, 0.94), rgba(196, 27, 27, 0.94));
    transition: opacity 280ms ease;
}

.igor-gallery__page:hover,
.igor-gallery__page.is-active {
    color: var(--igor-white);
    border-color: rgba(196, 27, 27, 0.58);
    background: rgba(196, 27, 27, 0.14);
    box-shadow: 0 16px 42px rgba(196, 27, 27, 0.18);
    transform: translate3d(0, -2px, 0);
}

.igor-gallery__page:hover::before,
.igor-gallery__page.is-active::before {
    opacity: 1;
}

.igor-gallery__page[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.igor-gallery__page[disabled]::before {
    opacity: 0;
}

.igor-gallery__ellipsis {
    min-width: 34px;
    padding: 0 6px;
    color: rgba(255,255,255,0.38);
    background: transparent;
    border-color: transparent;
    pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (min-width: 640px) {
    .igor-gallery__filters {
        justify-content: center;
    }

    .igor-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .igor-gallery__button {
        height: 360px;
    }

    .igor-gallery__empty {
        padding: 44px 36px;
        border-radius: 32px;
    }

    .igor-gallery__empty-icon {
        margin-bottom: 20px;
    }

    .igor-gallery__empty-icon i,
    .igor-gallery__empty-icon span {
        font-size: 34px;
    }
}

/*
|--------------------------------------------------------------------------
| Desktop
|--------------------------------------------------------------------------
*/

@media (min-width: 992px) {
    .igor-gallery__container {
        width: min(var(--igor-container-fluid, 90%), var(--igor-container, 1180px));
        max-width: var(--igor-container, 1180px);
        text-align: center;
    }

    .igor-gallery__top {
        max-width: 820px;
        margin-right: auto;
        margin-bottom: 42px;
        margin-left: auto;
        text-align: center;
    }

    .igor-gallery__top .igor-section-heading {
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .igor-gallery__top .igor-section-heading__eyebrow,
    .igor-gallery__top .igor-section-heading__title,
    .igor-gallery__top .igor-section-heading__text,
    .igor-gallery__top .igor-eyebrow,
    .igor-gallery__top .igor-section-title,
    .igor-gallery__top .igor-section-text,
    .igor-gallery__top p {
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .igor-gallery__filters {
        flex-wrap: wrap;
        justify-content: center;
        overflow: visible;
        padding-bottom: 0;
        margin-bottom: 34px;
    }

    .igor-gallery__filter:hover,
    .igor-gallery__filter.is-active {
        transform: translate3d(0, -3px, 0);
    }

    .igor-gallery__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .igor-gallery__button {
        height: 340px;
        border-radius: 28px;
    }

    .igor-gallery__overlay {
        padding: 20px;
    }

    .igor-gallery__title {
        font-size: clamp(26px, 2.8vw, 36px);
    }

    .igor-gallery__pagination {
        flex-wrap: nowrap;
        justify-content: center;
        overflow: visible;
        padding-bottom: 0;
    }

    .igor-gallery__page:hover,
    .igor-gallery__page.is-active {
        transform: translate3d(0, -3px, 0);
    }

    .igor-gallery__empty {
        min-height: 250px;
        padding: 52px 46px;
    }

    .igor-gallery__empty-text {
        font-size: 15px;
    }
}

/*
|--------------------------------------------------------------------------
| Desktop grande
|--------------------------------------------------------------------------
*/

@media (min-width: 1200px) {
    .igor-gallery__grid {
        gap: 24px;
    }

    .igor-gallery__button {
        height: 360px;
    }
}

/*
|--------------------------------------------------------------------------
| Mobile otimizado
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {
    .igor-gallery__filters {
        justify-content: flex-start;
        padding-right: 4px;
        padding-left: 4px;
    }

    .igor-gallery__pagination {
        justify-content: center;
        width: 100%;
        max-width: 100%;
        margin-top: 30px;
        padding: 2px 4px 8px;
        overflow-x: auto;
        scroll-padding-right: 20px;
        scroll-padding-left: 20px;
    }

    .igor-gallery__pagination.is-visible {
        display: flex;
    }
}

/*
|--------------------------------------------------------------------------
| Mobile pequeno
|--------------------------------------------------------------------------
*/

@media (max-width: 520px) {
    .igor-gallery__pagination {
        justify-content: center;
        gap: 6px;
        width: 100%;
        margin-right: auto;
        margin-left: auto;
        padding-right: 0;
        padding-left: 0;
        overflow-x: visible;
        overflow-y: hidden;
    }

    .igor-gallery__page,
    .igor-gallery__ellipsis {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 12px;
    }

    .igor-gallery__ellipsis {
        min-width: 22px;
        padding: 0 2px;
    }

    .igor-gallery__page:first-child,
    .igor-gallery__page:last-child {
        min-width: 38px;
    }
}

@media (max-width: 420px) {
    .igor-gallery__top {
        margin-bottom: 26px;
    }

    .igor-gallery__filters {
        gap: 8px;
        margin-bottom: 24px;
    }

    .igor-gallery__filter {
        min-height: 38px;
        padding: 0 14px;
        font-size: 10px;
    }

    .igor-gallery__button {
        height: 318px;
        border-radius: 23px;
    }

    .igor-gallery__overlay {
        padding: 16px;
    }

    .igor-gallery__tag {
        min-height: 26px;
        padding: 0 10px;
        font-size: 9px;
    }

    .igor-gallery__title {
        font-size: clamp(22px, 7vw, 30px);
    }

    .igor-gallery__play {
        top: 15px;
        right: 15px;
        width: 48px;
        height: 48px;
    }

    .igor-gallery__pagination {
        justify-content: center;
        gap: 5px;
        margin-top: 28px;
        padding-right: 0;
        padding-left: 0;
    }

    .igor-gallery__page,
    .igor-gallery__ellipsis {
        min-width: 34px;
        height: 34px;
        padding: 0 9px;
        font-size: 11px;
    }

    .igor-gallery__ellipsis {
        min-width: 18px;
        padding: 0 1px;
    }

    .igor-gallery__empty {
        min-height: 210px;
        padding: 26px 16px;
        border-radius: 22px;
    }

    .igor-gallery__empty-icon i,
    .igor-gallery__empty-icon span {
        font-size: 26px;
    }

    .igor-gallery__empty-title {
        font-size: 20px;
    }

    .igor-gallery__empty-text {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .igor-gallery__pagination {
        gap: 4px;
    }

    .igor-gallery__page,
    .igor-gallery__ellipsis {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 10px;
    }

    .igor-gallery__ellipsis {
        min-width: 16px;
        padding: 0;
    }
}