.overlay * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(33, 33, 33, 0.7);
    display: none;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
.overlay .close-x {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
}
.overlay .text-div {
    width: 35%;
    height: 400px;
    border-right: 1px solid #333;
    display: grid;
    place-items: center;
    text-align: center;
}
.overlay .text-div .text-inner-div {
    width: 80%;
    height: auto;
    font-size: 1.2em;
    line-height: 1.5em;
}
.overlay .text-div p span {
    font-weight: bold;
}
.overlay .text-div h2 {
    margin-bottom: 10px;
}
.overlay .text-div p {
    margin-bottom: 10px;
}
.overlay .arrows-div {
    width: 40%;
    max-width: 150px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: flex-end;
}
.overlay .arrows-div img {
    width: 40px;
    height: 40px;
    cursor: pointer;
}
.overlay .overlay-container {
    width: 80%;
    height: 100%;
    max-height: 700px;
    max-width: 1100px;
    min-width: 850px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* flex-direction: column; */
    background-color: #fafafa;
    position: relative;
}
.overlay .gal-container {
    width: 60%;
    height: 450px;
    /* background-color: rgb(255, 255, 255); */
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 1em;
}
.overlay .gal-container h2 {
    position: absolute;
    z-index: 10;
    top: -0.5em;
    left: 160px;
    font-size: 3em;
    margin: 0;
    font-weight: lighter;
}
/* .overlay .gal-container::before {
    content: 'RAVEN DIGITAL';
    width: 100%;
    height: 100%;
    position: absolute;
    color: rgba(222, 222, 222, 0.5);
    font-size: 16em;
    letter-spacing: 0.5rem;
   
    text-align: center;
} */
.overlay .main-img {
    width: 100%;
    max-width: 500px;
    max-height: 400px;
    margin-top: 2em;
    z-index: 1;
    position: relative;
   /* transform: translateX(5%); */
    transition: transform 1000ms opacity 1000ms;
}
.overlay .gal-footer {
    width: 100%;
    height: 110px;
    max-width: 600px;
    /* background-color: rgb(255, 255, 255); */
    display: flex;
    justify-content: center;
    display: none;
}

.overlay .thumb-div {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    cursor: pointer;
}
.overlay .thumb {
   max-width: 50%;
   margin-top: 0;
}
#gal-overlay img {
    box-shadow: none !important;
}
.overlay .img-div {
    width: 33.33%;
    /* background-color: rgba(51, 95, 118, 0.529); */
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: relative;
    box-shadow: none;
}
.overlay .img-div:nth-of-type(2):before, .overlay .img-div:nth-of-type(3):before {
    content: '';
    width: 1px;
    height: 50%;
    position: absolute;
    background-color: black;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    z-index: 10;
}
.overlay .img-div::after {
    content: '';
    width: 0%;
    height: 100%;
    position: absolute; 
    transition: width 500ms;
    
}
.overlay .img-div:hover:after {
    content: '';
    width: 80%;
    height: 100%;
    position: absolute;
    background-color: rgba(34, 34, 34, 0.5);
}
.overlay .laptop {
    transform: scale(1.3);
}
.overlay .tablet {
    transform: scale(0.65);
}

@media only screen and (max-width: 850px) { 
  .overlay .overlay-container {
      width: 100%;
      min-width: auto;
  }
}
@media only screen and (max-width: 600px) { 
    .overlay .overlay-container {
        flex-direction: column;
        justify-content: center;
       
    }
    .overlay .text-div {
        width: 80%;
        font-size: 0.9em;
        border-right: none;
        height: auto;
   }
   .overlay .gal-container {
       width: 80%;
       height: auto;
       gap: 0; 
   }
   .overlay .main-img {
       margin-top: 0.5em;
       max-height: 250px;
   }
   .overlay .arrows-div {
       height: 50px;
   }
   .overlay .arrows-div img {
         width: 30px;
         height: 30px;
   }
   .overlay .close-x {
       top: 20px;
       right: 20px;
   }
   .overlay .gal-footer {
       height: 60px;
   }
}