/* =========================================
   VARIÁVEIS DE DESIGN GLOBAIS
   ========================================= */
   :root {
    --color-highlight: transparent;
    --color-text-menu: #693C11;
    --color-menu-bg: #272f41;
    --background-color: #fff;
    --background-secondary-color: #f9f9f9;
    --title-color: #222;
    --text-color: #693c11;
    --menu-inverted-text-color: #ffffff; /* Branco puro para o menu */
    --font-title: 'Ubuntu', sans-serif;
    --font-default: 'Open Sans', sans-serif;
    --menu-height-crop: 120px;
    --primary-font-weight: 300;
    --button-font-weight: 300;
    --whatsapp-green: #25d366; /* Cor oficial do WhatsApp */
}

/* =========================================
   RESET E BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-default);
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden; /* Evita rolagem lateral indesejada */
    -webkit-font-smoothing: antialiased; /* Suaviza fontes no iPhone/Mac */
}

a {
    text-decoration: none;
    transition: all 200ms ease-in-out;
}

ul {
    list-style: none;
}

/* =========================================
   HEADER / MENU (GLOBAL)
   ========================================= */
header.menu {
    height: var(--menu-height-crop);
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    /* Posicionamento Absoluto para flutuar sobre o conteúdo */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    
    background-color: transparent;
    padding: 0 60px; 
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.logo {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 24px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    white-space: nowrap;
}

.menu-items {
    display: flex;
    gap: 40px;
    margin-right: auto;
    margin-left: auto;
    justify-content: center;
    flex-grow: 1;
}

.menu-items li a {
    font-family: var(--font-title);
    font-weight: var(--primary-font-weight);
    font-size: 14px;
    color: var(--menu-inverted-text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.text_portfolio li a {
    font-family: var(--font-title);
    font-weight: var(--primary-font-weight);
    font-size: 14px;
    color: var(--color-text-menu);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.menu-items li a:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    color: #ffffff;
}

.lang-selector {
    font-size: 12px; 
    font-weight: 300; 
    cursor: pointer; 
    opacity: 0.8;
}

.social-icon {
    color: #ffffff;
    font-size: 18px;
    opacity: 0.9;
}

.social-icon:hover {
    opacity: 1;
}

.menu-toggle {
    display: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

.text_portfolio{
    color: var(--color-text-menu);
    text-transform: none;
}

.social-icon_portfolio{
    color: var(--color-text-menu);
}

.menu-toggle_portfolio{
    color: var(--color-text-menu);
}

/* =========================================
   HERO SECTION (CAPA - CORRIGIDA)
   ========================================= */
.hero {
    position: relative;
    height: 100vh; /* Ocupa 100% da altura da janela visível */
    width: 100%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* --- REGRAS CRUCIAIS PARA IMAGEM PERFEITA --- */
    background-size: cover;       /* Cobre todo o espaço, cortando o excesso para não distorcer */
    background-position: center center; /* Centraliza a imagem vertical e horizontalmente */
    background-repeat: no-repeat; /* Garante que nunca vai duplicar */
    
    /* Animação suave de zoom (Opcional - dá vida à foto estática) */
    animation: zoomEffect 25s infinite alternate;
}

@keyframes zoomEffect {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 24px;
    z-index: 10;
    animation: bounce 2s infinite;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* =========================================
   SEÇÃO DE GALERIA (MASONRY)
   ========================================= */
.section-gallery {
    padding: 80px 20px;
    background-color: var(--background-color);
}

.gallery-title {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-title h2 {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 36px;
    color: var(--color-text-menu);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    height: 450px;
    flex-grow: 1;
    overflow: hidden;
    cursor: pointer;
}

/* Lógica de tamanhos variados */
.gallery-item:nth-child(1) { flex-basis: 350px; }
.gallery-item:nth-child(2) { flex-basis: 500px; }
.gallery-item:nth-child(3) { flex-basis: 350px; }
.gallery-item:nth-child(4) { flex-basis: 600px; }
.gallery-item:nth-child(5) { flex-basis: 400px; }
.gallery-item:nth-child(6) { flex-basis: 400px; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-title);
    font-weight: 400;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 2px;

    /* 🔥 ADICIONE ESTA LINHA */
    pointer-events: none;
}

/* MOSTRAR NO HOVER */
.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* TEXTO FIXO "Abrir" */
.gallery-overlay::before {
    content: "Abrir";
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery_portfolio{
    padding-top: 12%;
}

.gallery-title_portfolio h2{
    text-transform: none;
    font-size: 52px;
    font-weight: 100;
}

/* =========================================
   SEÇÃO SOBRE (ESTILO PORTFÓLIO)
   ========================================= */
.section-about {
    padding: 80px 20px;
    background-color: var(--background-secondary-color);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px; /* Espaço maior entre texto e foto */
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 48px;
    color: var(--color-text-menu);
    margin-bottom: 30px;
    line-height: 1.1;
}

.about-text {
    font-family: var(--font-default);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-color);
    font-weight: 300;
    margin-bottom: 20px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 600px;
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section_about{
    padding-top: 15%;
}

.section_about h2{
    font-weight: 100;
}

/* =========================================
   SEÇÃO INSTAGRAM
   ========================================= */
.instagram-section {
    padding: 80px 0 0 0;
    background-color: #fff;
    text-align: center;
}

.insta-header {
    max-width: 800px;
    margin: 0 auto 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.insta-title {
    font-family: var(--font-title);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--color-text-menu);
    letter-spacing: 1px;
}

.profile-container {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-pic img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    padding: 2px;
}

.profile-info {
    text-align: left;
}

.profile-name {
    font-family: var(--font-title);
    font-size: 26px;
    font-weight: 700;
    color: var(--title-color);
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.profile-username {
    font-size: 15px;
    color: var(--text-color);
    font-weight: 300;
}

.btn-follow {
    background-color: var(--color-menu-bg);
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    border: none;
    cursor: pointer;
    margin-left: 20px;
    transition: background 0.3s, transform 0.2s;
}

.btn-follow:hover {
    background-color: #151515;
    transform: translateY(-2px);
}

.insta-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.insta-item {
    position: relative;
    width: 16.666%;
    padding-bottom: 16.666%;
    overflow: hidden;
    border: 1px solid #fff;
}

.insta-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: #fff;
    font-size: 16px;
    gap: 15px;
    font-weight: 600;
}

.insta-item:hover .insta-overlay {
    opacity: 1;
}

.insta-item:hover img {
    transform: scale(1.1);
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background-color: var(--background-secondary-color);
    padding: 50px 20px;
    text-align: center;
    color: var(--text-color);
    border-top: 1px solid #eee;
}

.footer-logo {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 20px;
    color: var(--color-text-menu);
    margin-bottom: 20px;
    display: inline-block;
    letter-spacing: 2px;
}

.footer-socials {
    margin-bottom: 20px;
}

.footer-socials a {
    color: #555;
    font-size: 18px;
    margin: 0 12px;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: #000;
}

.copyright {
    font-size: 11px;
    font-weight: 400;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   BOTÃO WHATSAPP FIXO (GLOBAL)
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--whatsapp-green);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 16px;
    padding: 12px 24px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-default);
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 2px 5px 8px rgba(0,0,0,0.3);
    color: #fff;
}

.whatsapp-float i {
    font-size: 22px;
}

/* =========================================
   PÁGINA DE CONTATO
========================================= */

.contact-section {
    padding-top: 160px;
    padding-bottom: 120px;
    background: #fff;
}

.contact-container {
    max-width: 1400px;
    margin: auto;
    display: flex;
    gap: 60px;
    padding: 0 40px;
    align-items: flex-start;
}

.contact-image {
    flex: 1;
    min-width: 450px;
    height: 700px;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-form-box {
    flex: 1;
    min-width: 450px;
}

.contact-title {
    font-family: var(--font-title);
    font-size: 52px;
    font-weight: 700;
    color: var(--color-text-menu);
    margin-bottom: 40px;
}

.contact-form label {
    font-size: 14px;
    color: #555;
    display: block;
    margin-top: 18px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-size: 15px;
    outline: none;
    font-family: var(--font-default);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
}

.btn-submit {
    margin-top: 30px;
    padding: 12px 30px;
    background: var(--color-text-menu);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    border-radius: 4px;
    font-weight: 600;
    transition: .3s;
}

.btn-submit:hover {
    background: #111;
}

/* =========================================
   RESPONSIVIDADE (TABLETS E CELULARES)
   ========================================= */

/* Tablets (até 992px) */

@media (max-width: 900px) {

    .contact-container {
        flex-direction: column;
        padding: 0 20px; /* reduz para não ultrapassar */
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .contact-image,
    .contact-form-box {
        min-width: 0; /* REMOVE a limitação que estoura a tela */
        width: 100%;
    }

    .contact-image {
        height: auto;
        max-height: 380px;
    }

    .contact-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 992px) {
    header.menu {
        padding: 0 40px; 
    }
    .gallery-item {
        flex-basis: 45% !important; /* 2 colunas */
    }
    .about-image {
        height: 450px; 
    }
}

/* Mobile Grande e Tablets Pequenos (até 768px) */
@media (max-width: 768px) {
    header.menu {
        padding: 0 20px; 
        height: 80px; 
    }

    .logo {
        font-size: 20px;
    }

    .menu-items {
        display: none; /* Esconde menu padrão */
    }

    .menu-toggle {
        display: block; /* Mostra hambúrguer */
    }
    
    .header-actions .lang-selector, 
    .header-actions .social-icon {
        display: none; 
    }

    /* Galeria vira 1 coluna */
    .gallery-item {
        flex-basis: 100% !important; 
        height: 350px;
    }
    
    .hero-bg {
        animation: none; /* Remove animação pesada no mobile */
    }

    /* Ajustes Perfil Instagram Mobile */
    .profile-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .profile-info {
        text-align: center;
    }
    .profile-name {
        justify-content: center;
    }
    .btn-follow {
        margin-left: 0;
        width: 100%;
        max-width: 200px;
    }

    /* Grid Instagram Mobile - 3 colunas (estilo feed app) */
    .insta-item {
        width: 33.333%; 
        padding-bottom: 33.333%;
    }

    /* Sobre Mobile */
    .about-container {
        flex-direction: column;
        gap: 30px;
    }
    .about-content {
        padding-right: 0;
        text-align: center;
    }
    .about-title {
        font-size: 36px;
    }
    .about-image {
        width: 100%;
        height: 400px;
    }
}

/* Mobile Pequeno (Telas de 6 polegadas ~ 360px a 480px) */
@media (max-width: 500px) {
    header.menu {
        padding: 0 15px; 
    }
    
    .gallery-title h2, 
    .insta-title {
        font-size: 28px; 
    }

    .about-title {
        font-size: 32px;
    }

    .whatsapp-float {
        padding: 10px 15px;
        font-size: 14px;
        bottom: 15px;
        right: 15px;
    }

    .gallery_portfolio{
        padding-top: 100px !important;
    }

    .section_about{
        padding-top: 100px !important;
    }
}

.menu-items.mobile-open {
    display: flex !important;
}

/* MODAL DA GALERIA */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.gallery-modal-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 6px;
}

.close-modal {
    position: absolute;
    top: 40px;
    right: 60px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    font-size: 40px;
    padding: 10px 18px;
    cursor: pointer;
    user-select: none;
    border-radius: 4px;
}

.gallery-prev {
    left: 40px;
}

.gallery-next {
    right: 40px;
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(255,255,255,0.4);
}

/* =========================================
   LOGO + TEXTO (LAYOUT HÍBRIDO)
   ========================================= */

/* Transforma o link num container flexível para alinhar img e texto */
.logo-link {
    display: flex;           /* Coloca um ao lado do outro */
    align-items: center;     /* Centraliza verticalmente */
    gap: 15px;               /* Espaço entre a imagem e o texto */
    text-decoration: none;   /* Remove sublinhado do link */
    color: inherit;          /* Herda a cor definida na classe pai (.logo) */
}

/* Configuração da Imagem */
.logo img {
    max-height: 55px; /* Tamanho equilibrado para ficar ao lado do texto */
    width: auto;
    display: block;
    transition: all 0.3s ease;
}

/* Garante que o texto mantenha o estilo original */
.logo span {
    white-space: nowrap; /* Impede que "DIGA XIS" quebre em duas linhas */
    /* As fontes e cores já são herdadas de .logo no seu CSS original */
}


/* =========================================
   AJUSTE RESPONSIVO (MOBILE)
   ========================================= */

@media (max-width: 768px) {
    /* No celular, reduzimos um pouco para caber na tela */
    .logo img {
        max-height: 40px; 
    }
    
    .logo-link {
        gap: 10px; /* Diminui o espaço entre logo e texto */
    }
    
    /* Se o nome for muito grande, diminui um pouco a fonte no mobile */
    .logo {
        font-size: 18px; 
    }
}

/* ===== HERO - BOTÃO BANLEK (PREMIUM MINIMALISTA) ===== */

.hero-content-custom {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
    color: #fff;
}

.hero-text-custom {
    font-family: var(--font-title);
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInHeroText 1.5s ease forwards;
}

.hero-button-custom {
    display: inline-block;
    padding: 12px 28px;
    border: 0.1px solid #fff;
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 300;
    text-transform: none;
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeInHeroButton 2s ease forwards;
    transition: 0.3s ease;
}

.hero-button-custom:hover {
    background-color: #fff;
    color: #000;
}

/* animações */
@keyframes fadeInHeroText {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInHeroButton {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsivo */
@media (max-width: 600px) {
    .hero-text-custom {
        font-size: 22px;
        margin-bottom: 15px;
    }
    .hero-button-custom {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/* =========================================
   NOVAS SEÇÕES: APENAS CATEGORIAS (HOME)
   ========================================= */

/* Ajuste do topo para não ficar embaixo do menu */
#portfolio {
    padding: 160px 20px 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#portfolio h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

/* --- ESTILOS DOS CARDS DE CATEGORIA --- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.category-card {
    position: relative;
    display: block;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-decoration: none;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: brightness(0.8);
}

.category-card:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.category-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    font-family: var(--font-title);
    font-size: 1.8rem;
    font-weight: bold;
    text-align: left;
    box-sizing: border-box;
}

/* Título da categoria na página interna */
#gallery-title {
    text-transform: capitalize;
    margin-bottom: 30px;
    font-family: var(--font-title);
    font-size: 3rem;
    color: var(--color-text-menu);
}

/* =========================================
   AJUSTE FINAL: GALERIA ESTILO PINTEREST (SEM CORTES)
   Adicione ao final do styles.css
   ========================================= */

.gallery-grid {
    /* Desativa o sistema antigo de linhas */
    display: block !important; 
    
    /* Cria 3 colunas verticais onde as fotos se encaixam */
    column-count: 3;
    column-gap: 20px; 
    
    /* Remove alinhamentos que forçavam altura */
    width: 100%;
}

.gallery-item {
    /* Permite que o container tenha o tamanho da foto */
    height: auto !important;
    width: 100% !important;
    
    /* Necessário para não quebrar a foto entre colunas */
    display: inline-block !important;
    margin-bottom: 20px;
    
    /* Reseta as larguras forçadas antigas */
    flex-basis: auto !important;
    max-width: 100% !important;
    
    /* Garante que a borda e sombra fiquem certas */
    border-radius: 8px;
    overflow: hidden; 
}

.gallery-item img {
    /* A mágica acontece aqui: altura automática baseada na foto real */
    height: auto !important;
    width: 100%;
    
    /* Remove o corte */
    object-fit: contain; 
    display: block;
}

/* Ajuste para telas médias (Tablets) */
@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2; /* Passa para 2 colunas */
    }
}

/* Ajuste para telas pequenas (Celulares) */
@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1; /* Passa para 1 coluna */
    }
}

/* =========================================
   AJUSTES FINAIS DE MOBILE (Adicione ao final do arquivo)
   ========================================= */

/* Ajuste para Tablets e Notebooks menores */
@media (max-width: 992px) {
    .gallery-grid {
        column-count: 2; /* Mantém 2 colunas */
    }
}

/* Ajuste para Celulares e Tablets pequenos (Alinhado com seu CSS original) */
@media (max-width: 768px) {
    .gallery-grid {
        column-count: 1; /* Vira 1 coluna para a foto ocupar a largura total e não ficar pequena */
    }

    /* CORREÇÃO DO TOPO NO MOBILE */
    #portfolio {
        /* No Desktop é 160px, mas no mobile 100px é suficiente */
        padding-top: 100px; 
    }
}