@media (max-width: 992px) {
    .photos { grid-auto-columns: calc((100% - 1.5rem) / 2); }
    .page5 { grid-template-columns: 1fr 1fr; }
}

/* Mobile menu: the hamburger toggles the links (see fiqma6.js) */
@media (max-width: 768px) {
    .bars { display: block; }
    nav .links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 10;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1rem 1rem;
        background-color: rgb(39, 39, 83);
    }
    nav .links.open { display: flex; }
    nav .links a {
        padding: 0.7rem 0.4rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
}

@media (max-width: 500px) {
    .container { max-width: 100%; }
    .hero h1 { font-size: 1.6rem; }
    .gallery { gap: 0.3rem; }
    .arrow img { width: 2rem; }
    .photos { grid-auto-columns: 100%; }
    .title, .subtitle { padding-left: 1rem; padding-right: 1rem; margin-left: 0; margin-right: 0; }
    .page2 { padding: 0 1rem; }
    .table-wrap { margin: 0 1rem; }
    .page5 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .page2 .left, .page2 .right { grid-template-columns: 1fr; }
}
