

.ezgallery.montage {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.container {
  max-width: 100%;
}

aside {
  flex-shrink: 0;
  width: 300px;
  margin: -10px 0px -10px -10px;
  padding: 18px;
  background-color: #d1d6c7;
  border: 2px dashed white;
  filter:
    drop-shadow(2px 2px 0px #d1d6c7)
    drop-shadow(-2px 2px 0px #d1d6c7)
    drop-shadow(2px -2px 0px #d1d6c7)
    drop-shadow(-2px -2px 0px #d1d6c7)
    drop-shadow(1px 1px 0 #d1d6c7)
    drop-shadow(-1px 1px 0 #d1d6c7)
    drop-shadow(1px -1px 0 #d1d6c7);
}

main {
  padding: 18px;
}

footer {
  padding: 18px 0;
}

nav ul {
  list-style: none;
  padding: 0;
}


figure {
  display: inline-block;
  vertical-align: top;
  text-align: center;
}

figcaption {
  margin: 4px 0;
  color: #fab1df;
  font-weight: 800;
}

.gallery figure {
  /*border: 1px dotted black;
  padding: 12px;*/
  margin: 6px 4px;
  width: 145px;
  vertical-align: middle;
  font-size: .8em;
  background: white;

}

.have {
  border: 10px solid #ccfab1 
}
.dont-have {
  border: 10px solid #fab1b1 
}
.have-damaged {
  border: 10px solid #fae5b1 
}

.gallery figure img {
  width: 100%;
  display: inline-block;
}

.pixel img {
  width: auto !important;
  border: none !important;
}

.featured {
  border: 2px solid transparent !important;
  border-image: linear-gradient(to bottom right, #b827fc 0%, #2c90fc 25%, #b8fd33 50%, #fec837 75%, #fd1892 100%) !important;
  border-image-slice: 1  !important;
}

h1 {
  font-family: 'Girlystuff';
  letter-spacing: 1px;
  font-size: 1.5em !important;
}

hr {
  /* border-top: 2px dashed black !important; */
}


/* The DRAWER */
      /* Modal Drawer Styles - Integrated for Image Gallery */
      .drawer {
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 100%;
        max-width: 800px;
        background-color: #b1edfa; /* Matches header background */
        box-shadow: -2px 0 10px rgba(0,0,0,0.3);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
      }

      .drawer.is-visible {
        transform: translateX(0);
      }
      
      #drawerH1 {
        
        color: grey;
        font-family: 'Nunito', sans-serif; 
      }

      .drawer__header {
        padding: 20px;
        border-bottom: 1px solid #ccc;
        display: flex;
        justify-content: space-between;
      }

      .drawer__close {
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: #333;
      }

      .drawer__content {
        padding: 20px;
        flex: 1;
        text-align: center;
      }

      .drawer__image {
        max-width: 48%;
        max-height: 70vh;
        width: auto;
        height: auto;
        border: 1px solid #ddd;
        border-radius: 5px;
      }

      .drawer__caption {
        margin-top: 15px;
        font-style: italic;
        color: #666;
      }

      /* Overlay Background */
      .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s;
      }

      .overlay.is-visible {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease-in-out;
      }

      /* Prevent body scroll when drawer is open */
      body.drawer-open {
        overflow: hidden;
      }

      /* Hide original modal if present */
      #myModal {
        display: none;
      }


/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  /*width: 80%;
  max-width: 700px;*/
  height: 80%;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  color: #ccc;
  padding: 10px 0;
  height: auto;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}


@media only screen and (max-width: 800px) {
  aside {
    margin: 0;
    width: 100% !important;
    flex-shrink: 1;
  } 
  main {
    padding: 18px 0;
  }
  .gallery figure {
    width: 30%;
    margin: 12px auto;
    display: block;
  }
}


