#main-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
#main-content > div:last-child {
    max-width: 25%;
    min-width: 19rem;
    min-height: 15rem;
    height: 100%;
    margin-right: 1.75rem;
}

.main-content {
    padding: 3rem 2rem;
}

.dermatoscopio-title h1 {
    padding-bottom: 2rem;
    font-size: 1.6rem;
    color: #333;
}


.custom-galerie-produtos {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.5rem; 
    width: 95%;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
}
@media screen and (max-width: 700px) {
    .custom-galerie-produtos {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
}
@media screen and (max-width: 400px) {
    .custom-galerie-produtos {
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
    }
}
.imagens-galerie {
    border: 6px solid rgb(255, 255, 255); 
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}
.custom-galerie-produtos img {
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: .5s all ease-in-out;
}
.imagens-galerie img:hover {
    transform: scale(0.9);
}


.navegation-text {
    background: #bbb;
}
.navegation-text h2 {
    color: #fff;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: normal;
}
.navegation-img {
    padding: 10% 20% 5%;
    background: #ccc;
}
.navegation-img img{
    width: 100%;
    height: auto;
}


.caracteristicas h2 {
    color: #999;
    padding: 1rem 0;
}
.caracteristicas ul {
    padding: 0.5rem 1.2rem;
    padding-top: 0;
}
.caracteristicas li {
    font-size: 1rem;
    line-height: 1.5em;
    color: #999;
    margin-bottom: 0.2rem;
}


.item-number h2 {
    color: #999;
    padding: .5rem 0;
}
.itens-numbers {
    list-style: none;
    display: inline-block;
}
.item-number ul li {
    padding: 5px;
    color: #999;
}
.item-number ul li:nth-child(even) {
    background-color:#eee;
}


.modal-container {
    display: none;
}
.modal-container {
    display: none;
    position: fixed;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 50%;
    max-width: 85rem; 
    max-height: 100%;
    background-color: white;
    border: 5px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    overflow: hidden;
}
  

.modal-content {
    text-align: center; 
}
  
#modalImage {
    max-width: 85%; 
    height: auto; 
    display: block; 
    margin: 0 auto; 
    object-fit: contain;
}

.modal-opened {
    display: block; 
}

.nav-btn-container {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 1;
}

.nav-btn {
  font-size: 24px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  cursor: pointer;
  margin: 5px;
}

.close-btn {
  position: absolute;
  top: 0px;
  right: 5px;
  font-size: 2.5rem;
  cursor: pointer;
  color: black;
  z-index: 1;
  background-color: white;
  border-radius: 50%;
}
@media screen and (max-width: 500px) {
    .close-btn {
        font-size: 1.75rem;
    }
    .nav-btn {
        font-size: 1rem;
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh; 
    background: rgba(0, 0, 0, 0.5);
    filter: blur(5px);
    z-index: 1001; 
}

.modal-opened .modal-overlay {
    opacity: 1;
    pointer-events: auto; 
}

.modal-opened-body {
    overflow: hidden;
}
