body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--color-background);
}

.photo-first-block {
    display: flex;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #1B08B4;
background: linear-gradient(90deg, rgba(27, 8, 180, 1) 20%, rgba(227, 148, 30, 1) 100%);
    flex-direction: row; /* Change to row to place elements side by side */
    align-items: stretch; /* Make children stretch to full height */
    padding: 0; /* Remove padding */
}

.photo-first-block-text {
      position: relative;
      flex: 2;
  
      h1 {
        font-weight: bold;
        font-size: 5vw;
        color: var(--color-text);
      }
}

.main-photo-container {
    width: 60%;
    height: 100%;
    position: relative;

    overflow: hidden;
}

.main-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the container */
    object-position: center; /* Center the image */
    display: block;
}

.photo-description-container {
    width: 40%; /* Take up the other half of the container */
    padding: 20px 30px 20px 0; /* Add padding except on the left */
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    text-align: left;
}

.photo-description-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.photo-description-container p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.photo-gallery {
      height: fit-content;
      background-color: var(--color-text);
      padding: 5vh 5vw;
      max-height: 200vh;

      .photo-gallery-title {
        text-align: center;

        h1 {
          font-weight: bold;
        }
      }

      .photo-gallery-items {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: center;
        height: fit-content;
        max-height: 180vh;
        overflow-y: scroll;
        overflow-x: hidden;

        .photo-gallery-item-elements {
          flex: 0 0 300px;
            margin: 2vh 2vw 2vh 2vw;
            height: 50%;
           
            .photo-gallery-item {
              flex: 0 0 250px;
              overflow: hidden;
              height: 30vh;
              border-radius: 5%;
              box-shadow: 0 0 10px 0;

              img {
                width: 100%;
               height: 100%;
                object-fit: cover;
                object-position: 50% 50%;
            }
          }

          .photo-title {
            float: left;
            font-weight: bold;
            line-height: normal;
            font-size: 15px;
          }
          
          .photo-date {
            float: right;
            font-style: italic;
            font-size: 15px;
          }
        }
    }

    .photo-gallery-items::-webkit-scrollbar {
      background-color: var(--color-text);
      border-radius: 2px;
      width: 10px;
    }
    
    .photo-gallery-items::-webkit-scrollbar-thumb {
      background-color: var(--color-play);
      border-radius: 3px;
    }
  }

  @media (max-width: 1000px) {
     .photo-gallery {
      background-color: var(--color-text);

      .photo-gallery-title {
        font-size: medium;
      }

      .photo-gallery-items {

            .photo-gallery-item {
              height: 20vh;
          }
        }
    }
  }

.image-container {
  flex: 1;
}


.language-selector {
    position: relative;
    display: inline-block;
}

.language-selector #selectedLanguage {
  color: var(--color-text);
}

#languageBtn {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 20px;
}

#languageBtn:hover, #languageBtn:focus, #languageBtn:active {
  border: none;
  outline: none;
}

#languageDropdown {
    display: none;
    position: absolute;
    background-color: var(--color-text);
    min-width: 100px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
}

#languageDropdown a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

#languageDropdown a:hover {
    background-color: #f1f1f1;
  border-radius: 5px;
}

.photo-first-block-image {
    position: absolute; /* Make the image fill the div */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Ensure it stays behind other content */
}

.photo-first-block-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.responsive-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .photo-first-block {
        flex-direction: column;
        height: auto;
    }
    
    .main-photo-container,
    .photo-description-container {
        width: 100%;
    }
    
    .main-photo-container {
        height: 50vh;
    }
    
    .photo-description-container {
        padding: 20px;
    }
}
.image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    font-size: 1.1rem;
    border-radius: 4px;
    max-width: 90%;
}