/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");

/* Style the container for the image gallery */
#container {
    width: 1200px;
    margin: 0 auto;
}

#myContent {
    -moz-column-count: 6;
    -moz-column-gap: 0px;
    -webkit-column-count: 6;
    -webkit-column-gap: 0px;
    column-count: 6;
    column-gap: 0px;
    width: 1200px;
}
.media-container {
    text-align: center;
    position: relative;
}

.fullscreen-video,
#full-screen-image {
    max-height: 80%;
    max-width: 80%;
    display: inline-block;
    vertical-align: middle;
}

#media-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px;
    text-align: center;
    font-size: 16px;
}

#myContent img {
    display: inline-block;
    margin-bottom: 0px;
    width: 100%;
}

/* Media queries for responsive design */
@media only screen and (max-width: 1199px),
only screen and (max-device-width: 1199px) {
    #myContent {
        -moz-column-count: 5;
        -moz-column-gap: 0px;
        -webkit-column-count: 5;
        -webkit-column-gap: 0px;
        column-count: 5;
        column-gap: 0px;
        width: 1000px;
    }

    #container {
        width: 1000px;
    }
}

@media only screen and (max-width: 999px),
only screen and (max-device-width: 999px) {
    #myContent {
        -moz-column-count: 4;
        -moz-column-gap: 0px;
        -webkit-column-count: 4;
        -webkit-column-gap: 0px;
        column-count: 4;
        column-gap: 0px;
        width: 800px;
    }

    #container {
        width: 800px;
    }
}

@media only screen and (max-width: 799px),
only screen and (max-device-width: 799px) {
    #myContent {
        -moz-column-count: 3;
        -moz-column-gap: 0px;
        -webkit-column-count: 3;
        -webkit-column-gap: 0px;
        column-count: 3;
        column-gap: 0px;
        width: 600px;
    }

    #container {
        width: 600px;
    }
}

@media only screen and (max-width: 599px),
only screen and (max-device-width: 599px) {
    #myContent {
        -moz-column-count: 2;
        -moz-column-gap: 0px;
        -webkit-column-count: 2;
        -webkit-column-gap: 0px;
        column-count: 2;
        column-gap: 0px;
        width: 400px;
    }

    #container {
        width: 400px;
    }
}

/* Hide overlay by default */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
}

.overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.overlay-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.overlay-buttons button {
    background-color: rgba(0, 0, 0, 0.7);
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    width: 40px;
    height: 40px;
}

/* Customize navigation button icons */
#prev-button::before {
    content: '\f104';
    font-family: FontAwesome;
}

#close-button::before {
    content: '\f00d';
    font-family: FontAwesome;
}

#next-button::before {
    content: '\f105';
    font-family: FontAwesome;
}

/* Positioning of buttons */
#prev-button {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  position: fixed;
}

#next-button {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  position: fixed;
}

#close-button {
    right: 20px;
    top: 20px;
    position: fixed;
}

/* Additional styles for the full-size image and description */

#full-screen-image {
  max-width: 82%;
  max-height: auto;
  width: auto !important;
  height: auto !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#imageDescription {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 10px;
}