/* Cartões seguem o formato da fotografia: sem recorte nem faixas laterais. */
.mg-photo-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.mg-open-photo {
    aspect-ratio: auto;
    height: auto;
    background: var(--mg-lilac);
}

.mg-open-photo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: initial;
}

.mg-photo-card:hover .mg-open-photo img {
    transform: none;
    filter: brightness(.98);
}

/* Aproveita o espaço horizontal do tema e destaca a navegação no desktop. */
@media (min-width: 981px) {
    .site-header .header-inner,
    .page-shell,
    .home-section {
        max-width: 1560px;
    }

    .site-header .header-inner {
        gap: clamp(12px, 2vw, 32px);
    }

    .site-header .desktop-menu {
        gap: 7px;
    }

    .site-header .desktop-menu a {
        padding: 10px 13px;
        border: 1px solid #e9e2ee;
        border-radius: 11px;
        background: #f7f3fa;
        color: #523674;
        font-size: 13px;
        font-weight: 700;
        white-space: nowrap;
    }

    .site-header .desktop-menu a:hover,
    .site-header .desktop-menu a:focus-visible {
        background: #ece3f4;
        border-color: #cdbbe0;
    }

    .site-header .site-brand strong {
        font-weight: 800;
    }

    body.single-mg_match .match-page {
        padding-top: 32px;
    }
}

@media (min-width: 981px) and (max-width: 1200px) {
    .site-header .desktop-menu a {
        padding: 9px 8px;
        font-size: 12px;
    }
}

@media (min-width: 601px) and (max-width: 980px) {
    .mg-photo-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .mg-photo-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}
