*{
    margin: 0;
    padding: 0;
}

*{
    text-transform: none;
  }

html{
    scroll-behavior: smooth;
}

body{
    font-size: 100%;
    font-family: sans-serif;
}

section{
    width: 100%;
    height: 100vh;
    align-items: center;
    float: center;
    background-color: #fff;
    border-bottom: 2px solid rgb(0, 0, 0);
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.text{
    width: 90%;
    max-width: 1000px;
}

.container {
    display: flex;
    align-items: center;
}



h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    margin-top: 90px;
}
 
#studio h2{
    margin-top: 130px;
}

p {
    font-size:  1.2rem;
    font-weight: 400;
    line-height: 1.5;
    color: #555;
    margin-bottom: 50px;
    text-align: center;
}
  
  
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 20px;
    margin-bottom: 50px;
    max-width: 1500px;
}
  
img, #video-frame  {
    max-width: 100%;
    height: auto;
}
.button {
    margin-top: 30px;
    text-align: center;
}

.button a {
    color: white;
}
  
.button button {
    background-color: #e01313;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: clamp(20px, 50%, 50px);
}
  
.button button:hover {
    background-color: #da5454;
}

@media screen and (max-width: 1600px) and (max-height: 900px){
    section{
        height: 1400px
    }
}

@media screen and (max-width: 1400px) and (max-height: 900px) {
    section{
        height: 1200px
    }
}
@media screen and (max-width: 1200px) and (max-height: 900px) {
    section{
        height: 1000px
    }
}

  /* Media Query for Responsive Design */
@media screen and (max-width: 1000px) {
    #studio .gallery {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      grid-gap: 10px;
    }
    h2{
        margin-bottom: 25px;
    }
    #studio h2{
        margin-top: 70px;
    }
    .gallery{
        margin-top: 10px;
        margin-bottom: 10px;
    }

    p{
        margin-bottom: 10px;
    }

    h2{
        margin-top: 20px;
    }
    .gallery{
        max-width: 1000px;
    }
    .remove{
        display: none;
    }
    #studio h2{
        margin-top: 95px;
    }
  }
@media screen and (max-width: 700px) {
    .gallery{
        max-width: 700px;
    }
    p {
        font-size:  1.1rem;
    }
}
@media screen and (max-width: 500px) {
    .gallery{
        max-width: 700px;
    }
    p {
        font-size:  1.1rem;
    }
}
@media screen and (max-width: 400px) {
    .gallery{
        max-width: 400px;
    }
    p {
        font-size:  1.05rem;
    }
}
  
@media screen and (max-width: 700px) and (max-height: 900px){
    section{
        height: 850px
    }
    #video{
        height: 1000px
    }
    #ads{
        height: 1100px
    }
} 

@media screen and (max-width: 500px) and (max-height: 900px){
  section{
      height: 900px
  }
} 

h1{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}





#overlay, #video-overlay, #bar-bat-overlay, #family-overlay, #ad-overlay  {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;  
}
  

  
#close-button, #video-close-button, #bar-bat-close-button, #family-close-button, #ad-close-button { 
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 50px;
    cursor: pointer;
    z-index: 99999;
  }
  
.additional-image {
    margin-top: 10px;
}

#image-gallery {
    position: relative;
    background-color: #fff;
    padding: 20px;
    max-width: 1400px;
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-right: 40px; 
    margin-left: 40px; 
}
  
#image-gallery img {
    width: calc(33.33% - 20px);
    max-width: 500px;
    min-width: 400px;
    height: auto;
    margin: 10px;
    object-fit: contain; /* Add this line */
}
  
@media screen and (max-width: 768px) {
    #image-gallery img {
      width: calc(50% - 20px);
      min-width: 350px;
    }
    #image-gallery {
      margin-right: 15px; 
      margin-left: 15px; 
    }
  }
  
@media screen and (max-width: 480px) {
    #image-gallery img {
      width: 100%;
      min-width: 300px;
    }
  }


  #video-gallery {
    position: relative;
    background-color: #fff;
    padding: 20px;
    max-width: 1400px;
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-right: 40px;
    margin-left: 40px;
  }
  
  #video-gallery #video-frame  {
    width: calc(33.33% - 20px);
    max-width: 500px;
    min-width: 400px;
    height: auto;
    margin: 10px;
  }
  
  @media screen and (max-width: 768px) {
    #video-gallery #video-frame  {
      width: calc(50% - 20px);
      min-width: 350px;
    }
    #video-gallery {
      margin-right: 15px;
      margin-left: 15px;
    }
  }
  
  @media screen and (max-width: 480px) {
    #video-gallery #video-frame  {
      width: 100%;
      min-width: 300px;
    }
  }
  
  
  #bar-bat-show-more-button {
    display: block;
    margin: 20px auto;
  }
  
  
  @media screen and (max-width: 768px) {
    #bar_bat .gallery img {
      width: 100%;
      max-width: 300px;
    }
  }
  
  @media screen and (max-width: 480px) {
    #bar_bat .gallery img {
      width: 100%;
      max-width: 250px;
    }
  }

  #family-more-button {
    display: block;
    margin: 20px auto;
  }
  
  
  @media screen and (max-width: 768px) {
    #family .gallery img {
      width: 100%;
      max-width: 300px;
    }
  }
  
  @media screen and (max-width: 480px) {
    #family .gallery img {
      width: 100%;
      max-width: 250px;
    }
  }

  #ad-more-button {
    display: block;
    margin: 20px auto;
  }
  
  
  @media screen and (max-width: 768px) {
    #ad .gallery img {
      width: 100%;
      max-width: 300px;
    }
  }
  
  @media screen and (max-width: 480px) {
    #ad .gallery img {
      width: 100%;
      max-width: 250px;
    }
  }