#main-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
#main-content > div:last-child {
    min-width: 19rem;
    min-height: 15rem;
    height: 100%;
    margin-right: 1.75rem;
}


.main-content {
    padding: 3rem 2rem;
}
.text-main {
    line-height: 1.5rem;
    color: #999;
    font-size: 1rem;
    text-align: justify;
    font-weight: 600;
}
.text-main h2 {
    padding-bottom: 2rem;
    font-size: 1.6rem;
    color: #333;
}
.text-main p {
    padding-bottom: 1rem;
}
.subtitle {
    font-size: 1.3rem;
    font-weight: bold;
}
.text-main strong {
    color: #333;
}


.custom-galerie {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1rem; 
    width: 100%;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
}

.custom-galerie img {
    width: 100%;
    height: auto;
    border: 6px solid rgb(255, 255, 255);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: .5s all ease-in-out;
}

.custom-galerie img:hover {
    transform: scale(0.9);
}
@media screen and (max-width: 1200px) {
    .custom-galerie {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
}
@media screen and (max-width: 500px) {
    .custom-galerie {
        grid-template-columns: repeat(1, 1fr);
        width: 100%;
    }
}


.modal-container {
    display: none;
    position: fixed;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    width: 70%;
    max-width: 85rem; 
    max-height: 90%;
    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: 100%; 
    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%;
}

.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;
}
