/* Custom button design */
.fancybox-button {
    background: transparent;
    color: #333;
  }
  
  .fancybox-toolbar .fancybox-button:hover {
    background: rgba(223, 223, 223, 0.5);
    color: #f90;
  }
  
  /* Make close button a bit bigger */
  .fancybox-button--close {
    padding: 7px;
  }
  
  /* Navigation arrows */
  .fancybox-navigation .fancybox-button {
    z-index: 99996;
  }
  
  .fancybox-navigation .fancybox-button div {
    padding: 0;
  }
  
  .fancybox-navigation .fancybox-button[disabled],
  .fancybox-navigation .fancybox-button[disabled]:hover {
    color: #888;
  }
  
  .fancybox-navigation .fancybox-button:hover {
    color: #000;
  }
  
  /* Change backdrop color */
  .fancybox-bg {
    background: #eee;
  }
  
  /* Initially hide the caption */
  .caption {
    display: none;
  }
  
  /* Change position and design of caption area */
  .fancybox-caption {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    padding: 0;
    width: 300px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    box-shadow: 0 0 10px #444;
    z-index: 99996;
    text-align: left;
    /* Hide next to right edge */
    transform: translate3d(320px, 0, 0);
  }
  
  .fancybox-caption::before {
    display: none;
  }
  
  .fancybox-caption > div {
    margin-top: 44px;
    padding: 20px;
    max-height: calc(100vh - 44px);
    overflow: auto;
  }
  
  /* Overwrite the default animation */
  .fancybox-show-caption .fancybox-caption,
  .fancybox-caption {
    transition: transform 0.4s;
  }
  
  /* Reveal caption */
  .fancybox-show-caption.fancybox-vertical-caption .fancybox-caption {
    transform: translate3d(0, 0, 0);
  }
  
  /* Styling of caption content */
  .fancybox-caption a {
    color: #333;
  }
  
  .fancy-nav a {
    text-decoration: none;
    font-weight: normal;
    font-size: 24px;
    font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: rgba(100, 100, 100, 0.5);
    color: #ccc;
    border-radius: 20%;
    display: inline-block;
    width: 22px;
    height: 22px;
    line-height: 18px;
    text-align: center;
    -moz-user-select: none;
    user-select: none;
    cursor: pointer;
    outline: none;
  }
  
  .fancy-nav a:hover {
    text-decoration: none;
  }
 
  figure figcaption {
    padding: 6%;
    color: #444;
    backface-visibility: hidden;
  }
  figure figcaption::before, figure figcaption::after {
    pointer-events: none;
  }
  figure figcaption,
  figure figcaption > a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  figure figcaption > a {
    font-size: 0;
    opacity: 0;
    text-indent: 200%;
    white-space: nowrap;
    z-index: 1000;
  }
  
  figure.hvr img {
    transition: opacity 0.45s;
    backface-visibility: hidden;
  }
  figure.hvr figcaption::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
  }
  figure.hvr:hover img {
    opacity: 0.15;
    filter: grayscale(0.5);
  }
  
  .img-list:after {
    content: "";
    display: block;
    clear: both;
  }

  .imglist{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .gallery_section .imglist figure img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border: 1px dashed #0c0c2030;
    padding: 10px;
  }
  

  @media screen and (min-width: 320px) {
    .gallery_section .imglist a {
        width: 48.5%;
    }
    .gallery_section .imglist figure img {
        height: 190px;
      }
      
  }
  @media screen and (min-width: 640px) {
    .gallery_section .imglist a{
      width: 48%;
    }
  }
  @media screen and (min-width: 768px) {
    .gallery_section .imglist a {
      width: 32%;
    }
  }
  @media screen and (min-width: 1280px) {
    .gallery_section .imglist a {
      width: 24%;
    }

    .gallery_section .imglist figure img {
        height: 270px;
      }
  }