/* ============================================================
   1. CONFIGURAÇÕES GERAIS E TÍTULO DA SEÇÃO
   ============================================================ */
   .gallery-section {
    width: 100%;
    padding: 20px 0 60px 0;
    background-color: #ffffff;
    overflow-x: hidden;
}

.diferencial { 
    text-align: center; 
    margin-bottom: 50px; 
    padding: 0 20px;
}

.menta-title { 
    font-size: 2.2rem; 
    color: #333; 
    margin-bottom: 15px; 
    font-weight: normal; 
    text-transform: uppercase; 
}

.menta-line { 
    width: 60px; 
    height: 1px; 
    background-color: #ccc; 
    margin: 0 auto; 
}

/* ============================================================
   2. GRID DESKTOP (3 COLUNAS)
   ============================================================ */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 80px 30px; /* Gap maior para as etiquetas não se sobreporem */
    max-width: 1200px; 
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-item {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.gallery-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Container interno que segura o círculo e a tag */
.gallery-item-inner {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    text-align: left; /* Garante que a base de alinhamento seja a esquerda */
}

/* ============================================================
   3. CÍRCULO E EFEITOS (ZOOM + ESCURECER)
   ============================================================ */
.img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 50%;
    background-color: #f9f9f9;
    z-index: 1; /* Fica abaixo da etiqueta */
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Camada que escurece no hover */
.overlay-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.4s ease;
    border-radius: 50%;
    z-index: 2;
}

/* Hover effects */
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .overlay-hover {
    background-color: rgba(0, 0, 0, 0.2);
}

/* ============================================================
   4. ETIQUETA DE TÍTULO (ESTILO ADIDAS - CORRIGIDO)
   ============================================================ */
.tag-title {
    position: absolute;
    bottom: 12%;      /* Altura da etiqueta em relação à base do círculo */
    left: 0;          /* Travado na borda esquerda do item */
    background-color: #ffffff !important;
    color: #000000 !important;
    padding: 8px 15px;
    margin: 0;
    font-size: 1.2rem;  /* Ajustado para caber textos longos corporativos */
    font-weight: 800; /* Extra bold para impacto */
    text-transform: uppercase;
    z-index: 10 !important; /* Força ficar por cima da foto */
    
    /* Regras críticas para alinhamento à esquerda com textos longos */
    display: table;   /* Faz o fundo branco acompanhar exatamente a largura do texto */
    white-space: normal;
    text-align: left;
    max-width: 95%;   /* Evita que nomes gigantes saiam do limite do container */
    box-shadow: none !important;
}

/* ============================================================
   5. VERSÃO MOBILE (LARGURA TOTAL)
   ============================================================ */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr !important;
        gap: 10px 0 60px 0 !important;
        padding: 0 10px !important;
    }

    .gallery-item-inner {
        width: 92vw !important;
        max-width: 450px;
    }

    .tag-title {
        font-size: 1.2rem;
        padding: 10px 20px;
        bottom: 10%; 
    }

    .menta-line { 
        width: 60px; 
        height: 1px; 
        background-color: #ccc; 
        margin: 0 auto; 
    }
}