/* extracted from view/gallery.php — порядок блоков сохранён */

/* --- block 1 --- */
.item-3cols {
  width: 33.33%;
}
.title-fleet-gallery {
  margin: 40px 0;
  padding-top: 30px;
  text-align: center;
}

.item-portfolio {
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 40px;
}

.portfolio-masonry {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 30px;
}

.title-fleet-gallery h2 {
  font-size: 2.5rem;
}
.row > .column {
  padding: 0 8px;
}
.post-image {
  margin-bottom: 5px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  aspect-ratio: 5/3;
}

.row:after {
  content: "";
  display: table;
  clear: both;
}


/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  overflow: auto;
  background-color: black;
}

.modal-content {
  position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 70%;
  max-width: 700px;
  
}

.close {

  display: none;

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

.mySlides {
  display: none;
}


.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Number text (1/3 etc) */
.numbertext {

  display:none!important;
}


img.demo {
  opacity: 0.6;
}

.active,
.demo:hover {
  opacity: 1;
}

img.hover-shadow {
  transition: 0.3s;
}

.hover-shadow:hover {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

figcaption {
	background-color: #22222273;
    color: #fff;
    font: italic smaller sans-serif;
    padding: 3px;
    text-align: center;
    margin: -21px 0 0;
    position: relative;
}
@media screen and (min-width: 1024px) {
  .item-portfolio {
    width: calc(33.33% - 30px);
    margin: 10px;
  }
}
@media screen and (min-width: 1024px) {
.modal-content {
  top: 150.5px;
    left: 20px;
    margin-bottom:20;
}
}
@media screen and (min-width: 1024px) {
.item-grid-image img {
  object-fit: cover;
  height: 100%;
    width: 100%;
}
}
@media screen and (max-width: 767px) {
  .item-portfolio {
    width: calc(100% - 20px);
    margin: 10px;
  }
}
@media screen and (max-width: 767px) {
  .modal-content{
position: relative;
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  width: 70%;
  max-width: 700px;
  top:150px;
  margin-bottom:15px;
  }
}
@media screen and (max-width: 767px) {
.post-image {
  margin-bottom: 5px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  aspect-ratio: 6/4;
}
}
