* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    background-color: #e8f2ec;
    color: #222;
}

/* Container geral */
.observation-detail, .breadcrumb {
    width: 100%;
    padding: 1.5rem 1rem;
    /* margin-top: 80px; */
}

/* Informações principais */
.info {
    padding: 1rem;
    background-color: #ffffff;
    border-left: 5px solid #4bc18a;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
}

.info h1, h2 {
    font-size: 2rem;
    color: #0f3d2e;
    margin-bottom: 1rem;
}

h2{
    margin-bottom: 0rem;
}

.info p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.5;
}

.info p strong {
    color: #3a7762;
}

/* Carrossel */
.media-carousel-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.media-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 1rem 0;
    max-width: 100%;
}

.media-item {
    flex: 0 0 25rem;
    height: 25rem;
    scroll-snap-align: center;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f2f2f2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botões de navegação */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(15, 61, 46, 0.8);
    border: none;
    color: white;
    font-size: 2rem;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    z-index: 1;
    border-radius: 4px;
}

.carousel-btn.prev {
    left: 5px;
}

.carousel-btn.next {
    right: 5px;
}

.carousel-btn:hover {
    background-color: #4bc18a;
}

/* Botão de voltar */
.back-link {
    display: inline-block;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #3b7457;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: #4bc18a;
    color: #0f3d2e;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999; /* Bem acima do header */
    /* padding-top: 60px; */
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#modalImage, #modalVideo {
    display: none;
}

.media-item video {
    pointer-events: none; /* impede que clique no vídeo inicie ele */
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}

.close:hover {
    color: #ccc;
}