.gallery-section {
    margin: 40px 0;
}

.gallery-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin: 30px 0;
    padding: 30px;
    border-left: 5px solid #007bff;
}

.gallery-card.mineral {
    border-left-color: #6c757d;
}

.gallery-card.vegetal {
    border-left-color: #28a745;
}

.gallery-card h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.8em;
}

.gallery-card p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 0;
}

.gallery-item {
    cursor: pointer;
    transition: transform 0.3s ease,_attach
    box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    background: #f8f9fa;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
    display: block;
}

.gallery-item img:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gallery-item p {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
    color: #333;
}

.gallery-item small {
    color: #666;
    font-weight: normal;
}

/* Specs */
.specs-card {
    background: #f8f9fa;
    padding: 25px;
    margin: 20px 0;
    border-radius: 12px;
    border-left: 5px solid #007bff;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    text-align: left;
}

.specs-card ul {
    color: #666;
    line-height: 1.8;
    margin: 0;
    padding-left: 18px;
}

.specs-title {
    margin-bottom: 15px;
}

.mineral-title {
    color: #6c757d;
}

.vegetal-title {
    color: #28a745;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s;
    overflow: auto;
}

.modal-content {
    position: relative;
    margin: 50px auto;
    max-width: 90%;
    max-height: none;
    display: block;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.close {
    position: fixed;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2001;
}

.close:hover {
    color: #ffd700;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-info {
    text-align: center;
    color: white;
    margin: 15px 0 50px 0;
    font-size: 1.2em;
    padding: 0 20px;
}

/* Responsividade */
@media (max-width: 768px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 20px auto;
        max-width: 95%;
    }

    .close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .modal-info {
        font-size: 1em;
        margin: 10px 0 30px 0;
    }
}
