/* Galeria de vídeos institucional (tema Delogis) */
.inst-videos-section {
    padding: 72px 0 96px;
    background: linear-gradient(180deg, #f8f9fb 0%, #fff 48%);
}

.inst-videos-section .section-title__title {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.inst-video-grid {
    margin-top: 48px;
}

.inst-video-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(14, 27, 45, 0.08);
    box-shadow: 0 8px 32px rgba(14, 27, 45, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.inst-video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(14, 27, 45, 0.12);
}

.inst-video-card__media {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #0e1b2d;
    cursor: pointer;
    text-align: left;
}

.inst-video-card__media img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.inst-video-card__media--short img {
    aspect-ratio: 9 / 16;
    max-height: 440px;
    object-fit: cover;
}

.inst-video-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(14, 27, 45, 0.05) 0%, rgba(14, 27, 45, 0.45) 100%);
    transition: background 0.25s ease;
}

.inst-video-card__media:hover .inst-video-card__overlay {
    background: linear-gradient(180deg, rgba(14, 27, 45, 0.12) 0%, rgba(14, 27, 45, 0.58) 100%);
}

.inst-video-card__play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: #c4302b;
    font-size: 1.65rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease;
}

.inst-video-card__media:hover .inst-video-card__play {
    transform: scale(1.06);
}

.inst-video-card__badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(14, 27, 45, 0.82);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.inst-video-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 22px 24px;
}

.inst-video-card__title {
    margin: 0 0 10px;
    font-size: 1.125rem;
    line-height: 1.45;
    color: var(--inst-primary, #0e1b2d);
}

.inst-video-card__text {
    margin: 0;
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #5c6570;
}

.inst-video-card__action {
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--inst-primary, #0e1b2d);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
}

.inst-video-card__action:hover {
    color: var(--inst-secondary, #c5a059);
}

.inst-videos-empty {
    padding: 56px 24px;
    border-radius: 18px;
    border: 1px dashed rgba(14, 27, 45, 0.16);
    background: #fff;
    text-align: center;
}

/* Modal YouTube */
.inst-yt-dialog .modal-content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.inst-yt-dialog .modal-header {
    padding: 18px 22px 12px;
    background: #0e1b2d;
    color: #fff;
}

.inst-yt-dialog .modal-title {
    font-size: 1rem;
    font-weight: 600;
}

.inst-yt-dialog .btn-close {
    filter: invert(1);
    opacity: 0.85;
}

.inst-yt-dialog .modal-body {
    padding: 0;
    background: #000;
}

.inst-yt-ratio {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    height: 0;
}

.inst-yt-ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #000;
}

.inst-yt-ratio--landscape {
    padding-bottom: 56.25%;
}

.inst-yt-ratio--short {
    max-width: 380px;
    margin: 0 auto;
    padding-bottom: 177.78%;
}

.inst-yt-dialog--short {
    max-width: 420px;
}

.inst-yt-dialog--landscape {
    max-width: 960px;
    width: calc(100% - 2rem);
}

#instYoutubeModal {
    z-index: 1000002 !important;
}

#instYoutubeModal ~ .modal-backdrop {
    z-index: 1000001 !important;
}

body.inst-yt-modal-open .custom-cursor__cursor,
body.inst-yt-modal-open .custom-cursor__cursor-two {
    display: none !important;
}

.inst-yt-dialog .modal-footer {
    background: #0e1b2d;
}

.inst-yt-dialog .modal-footer .btn-outline-light:hover {
    color: #0e1b2d;
}

@media (max-width: 767px) {
    .inst-videos-section {
        padding: 48px 0 72px;
    }

    .inst-video-grid {
        margin-top: 32px;
    }
}
