/* css styles for pixgallery */

/* caption */

.slbCaption, .pixgallery-caption {
  white-space: normal;
  font-family: system-ui, sans-serif;
  font-weight: normal;
  padding: 1em;
}

/* common */

.pixgallery-gallery {
  margin: 0.5em 0;
}

.pixgallery-child {
  -webkit-transition: -webkit-filter 0.25s;
  transition: -webkit-filter 0.25s;
  -o-transition: filter 0.25s;
  transition: filter 0.25s;
  transition: filter 0.25s, -webkit-filter 0.25s;
  -webkit-column-break-inside: avoid;
     -moz-column-break-inside: avoid;
          break-inside: avoid;
}

.pixgallery-child:hover,
.pixgallery-child:focus,
.pixgallery-child:active {
  -webkit-filter: brightness(0.8) contrast(0.8);
  filter: brightness(0.8) contrast(0.8);
  -webkit-transition: -webkit-filter 0.25s;
  transition: -webkit-filter 0.25s;
  -o-transition: filter 0.25s;
  transition: filter 0.25s;
  transition: filter 0.25s, -webkit-filter 0.25s;
}

.pixgallery-child a.disabled {
  pointer-events: none;
  color: gray;
  text-decoration: none;
  cursor: default;
}

/* caption */

.pixgallery-caption-top {
  -ms-grid-column: 1;
  grid-column: 1;
  -ms-grid-row: 1;
  grid-row: 1;
  -ms-grid-row-align: start;
      align-self: start;
  text-align: left;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  pointer-events: none;
  color: white;
  background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.6)));
  background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
}

.pixgallery-caption-center {
  -ms-grid-column: 1;
  grid-column: 1;
  -ms-grid-row: 1;
  grid-row: 1;
  -ms-grid-row-align: stretch;
      align-self: stretch;
  display: -ms-grid;
  display: grid;
  -ms-flex-line-pack: center;
      align-content: center;
  text-align: left;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  pointer-events: none;
  color: white;
  background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0)), color-stop(rgba(0, 0, 0, 0.3)), to(rgba(0, 0, 0, 0)));
  background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
  background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}

.pixgallery-caption-bottom {
  -ms-grid-column: 1;
  grid-column: 1;
  -ms-grid-row: 1;
  grid-row: 1;
  -ms-grid-row-align: end;
      align-self: end;
  text-align: left;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  pointer-events: none;
  color: white;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.6)));
  background: -o-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
}

.pixgallery-caption-below {
  width: 100%;
  text-align: left;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  color: #1c2833;
  background:  #eaecee;
}

/* gallery grid */

.pixgallery-grid {
	display: -ms-grid;
	display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));*/
}

.pixgallery-grid-image {
  -o-object-fit: cover;
  object-fit: cover;
  /*height: 200px;*/
  width: 100%;
}

.pixgallery-child-over {
  display: -ms-grid;
  display: grid;
  /*overflow: hidden;*/
}

.pixgallery-child-over a {
  -ms-grid-column: 1;
  grid-column: 1;
  -ms-grid-row: 1;
  grid-row: 1;
}

.pixgallery-grid-image-over {
  -o-object-fit: cover;
     object-fit: cover;
  height: 100%;
  width: 100%;
}

.pixgallery-child-below {
  display: -ms-grid;
  display: grid;
}

.pixgallery-grid-child-below {
  display: -ms-grid;
  display: grid;
  -ms-grid-rows: 250px auto;
  grid-template-rows: 250px auto;
}

.pixgallery-grid-image-below {
  -o-object-fit: cover;
     object-fit: cover;
  height: 100%;
  width: 100%;
}

/* gallery mosaic */

.pixgallery-mosaic {
  display: -ms-grid;
	display: grid;
  /*grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));*/
  grid-auto-flow: dense;
}

.pixgallery-mosaic-child-below {
  display: -ms-grid;
  display: grid;
  -ms-grid-rows: auto -webkit-min-content;
  -ms-grid-rows: auto min-content;
  grid-template-rows: auto -webkit-min-content;
  grid-template-rows: auto min-content;
}

.pixgallery-mosaic-child:nth-child(6n+2) {
  -ms-grid-column-span: 2;
  grid-column: span 2;
  -ms-grid-row-span: 2;
  grid-row: span 2;
}

.pixgallery-mosaic-image {
  -o-object-fit: cover;
  object-fit: cover;
  height: 100%;
  width: 100%;
}

/* gallery masonry */

.pixgallery-masonry {
  display: column;
  -webkit-column-width: 200px;
     -moz-column-width: 200px;
          column-width: 200px;
  -webkit-column-gap: 5px;
     -moz-column-gap: 5px;
          column-gap: 5px;
}

.pixgallery-masonry-child {
  margin-bottom: 5px;
}

.pixgallery-masonry-image {
  width: 100%;
}

/* gallery justified */

.pixgallery-justified {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 5px;
}

.pixgallery-justified-child {
  flex-grow: 1;
}

.pixgallery-justified-over-child {
  position: relative;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 auto;
          flex: 1 1 auto;
  overflow: hidden;
}

.pixgallery-justified-over-child a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.pixgallery-justified-caption-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  text-align: left;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  pointer-events: none;
  color: white;
  background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.6)));
  background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
}

.pixgallery-justified-caption-center {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
  text-align: left;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  pointer-events: none;
  color: white;
  background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0)), color-stop(rgba(0, 0, 0, 0.3)), to(rgba(0, 0, 0, 0)));
  background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
  background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}

.pixgallery-justified-caption-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: left;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  pointer-events: none;
  color: white;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.6)));
  background: -o-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
}

.pixgallery-justified-over-image {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  -o-object-fit: cover;
     object-fit: cover;
  height: 100%;
  width: auto;
}

.pixgallery-justified-image {
  /*height: 200px;*/
  width: 100%;
  object-fit: cover;
}

/* gallery elastic */

.pixgallery-elastic {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
      flex-wrap: nowrap;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 200px;
  gap: 5px;
}

.pixgallery-elastic-child {
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  height: 100%;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}

.pixgallery-elastic-child:hover {
  -webkit-box-flex: 6;
      -ms-flex: 6;
          flex: 6;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.pixgallery-elastic-child a {
  display: block;
  width: 100%;
  height: 100%;
}

.pixgallery-elastic-image {
  -o-object-fit: cover;
     object-fit: cover;
  height: 100%;
  width: 100%;
  object-fit: cover;
  overflow: hidden;
}

/* gallery rhombus */

.pixgallery-rhombus {
  --size: 100px;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: var(--size) 5px var(--size) 5px var(--size) 5px var(--size) 5px var(--size) 5px var(--size);
  grid-template-columns: repeat(6, var(--size));
  grid-auto-rows: var(--size);
  margin-bottom: var(--size);
  place-items: start center;
  gap: 5px;
}

.pixgallery-rhombus-image {
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-clip-path: path("M90,10 C100,0 100,0 110,10 190,90 190,90 190,90 200,100 200,100 190,110 190,110 110,190 110,190 100,200 100,200 90,190 90,190 10,110 10,110 0,100 0,100 10,90Z");
          clip-path: path("M90,10 C100,0 100,0 110,10 190,90 190,90 190,90 200,100 200,100 190,110 190,110 110,190 110,190 100,200 100,200 90,190 90,190 10,110 10,110 0,100 0,100 10,90Z");
  //transition: filter 0.25s;
  border-radius: 0;
  width:100%;
  height:100%;
  object-fit: cover;
  overflow: hidden;
}

.pixgallery-rhombus-child {
  width: calc(var(--size) * 2);
  height: calc(var(--size) * 2);
  grid-column: auto / span 2;
}

.pixgallery-rhombus-child:nth-child(5n - 1) {
  -ms-grid-column: 2;
  -ms-grid-column-span: 2;
  grid-column: 2 / span 2;
}
