/* css styles for pixgallery */

/* 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 {
  white-space: normal;
  font-family: system-ui, sans-serif;
  font-weight: normal;
  padding: 1em;
}

.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: -o-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0)), to(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: -o-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
  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: 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: -o-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(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 {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          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: -o-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0)), to(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: -o-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
  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: 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: -o-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(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%;
  -o-object-fit: cover;
     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 */
/* https://css-tricks.com/hexagons-and-beyond-flexible-responsive-grid-patterns-sans-media-queries/ */

.pixgallery-rhombus {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  /* --h: 200px;
  --gap: 4px;
  --r: calc(var(--h) + 4*var(--gap) - 2px); */
}

.pixgallery-rhombus .pixgallery-rhombus-container {
  font-size: 0; /*disable white space between inline block element */
}

.pixgallery-rhombus .pixgallery-rhombus-container::before {
  content: "";
  float: left;
  height: 140%;
  /* width: calc(var(--h)/2 + var(--gap));
  shape-outside: repeating-linear-gradient(#0000 0 calc(var(--r) - 3px),#000  0 var(--r)); */
}

.pixgallery-rhombus-child {
  /* width: var(--h);
  margin: var(--gap);
  height: var(--h);
  margin-bottom: calc(var(--gap) - var(--h)*0.5); */
  display: inline-block;
  font-size: initial;
  /* clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); */
  background: lightgrey;
}

.pixgallery-rhombus-child a {
  position: absolute;
  height: inherit;
  width: inherit;
  display: block;
}

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

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

.pixgallery-rhombus-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  pointer-events: none;
}

.pixgallery-rhombus-caption-top {
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start; /* Change to: flex-start (top), center (center), flex-end (bottom) */
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center; /* Change to: flex-start (left), center (center), flex-end (right) */
  background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.6)));
  background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
}

.pixgallery-rhombus-caption-center {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center; /* Change to: flex-start (top), center (center), flex-end (bottom) */
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center; /* Change to: flex-start (left), center (center), flex-end (right) */
  background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
  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: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}

.pixgallery-rhombus-caption-bottom {
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end; /* Change to: flex-start (top), center (center), flex-end (bottom) */
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center; /* Change to: flex-start (left), center (center), flex-end (right) */
  background: -o-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.6)));
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
}

.pixgallery-rhombus-caption-inner {
  color: white;
  font-family: system-ui, sans-serif;
  padding: 1em;
  pointer-events: auto;
}

/* gallery hexagon */
/* https://css-tricks.com/hexagons-and-beyond-flexible-responsive-grid-patterns-sans-media-queries/ */

.pixgallery-hexagon {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  /* --s: 150px;
  --m: 4px;
  --f: calc(1.732 * var(--s) + 4 * var(--m)  - 1px); */
}

.pixgallery-hexagon .pixgallery-hexagon-container {
  font-size: 0; /*disable white space between inline block element */
}

.pixgallery-hexagon .pixgallery-hexagon-container::before {
  content: "";
  float: left;
  height: 140%;
  /* width: calc(var(--s)/2 + var(--m));
  shape-outside: repeating-linear-gradient(#0000 0 calc(var(--f) - 3px),#000  0 var(--f)); */
}

.pixgallery-hexagon-child {
  /* width: var(--s);
  margin: var(--m);
  height: calc(var(--s)*1.1547);
  margin-bottom: calc(var(--m) - var(--s)*0.2885);
  clip-path: polygon(0% 25%, 0% 75%, 50% 100%, 100% 75%, 100% 25%, 50% 0%); */
  display: inline-block;
  font-size: initial;
  background: lightgrey;
}

.pixgallery-hexagon-child a {
  position: absolute;
  height: inherit;
  width: inherit;
  display: block;
}

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

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

.pixgallery-hexagon-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  pointer-events: none;
}

.pixgallery-hexagon-caption-top {
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start; /* Change to: flex-start (top), center (center), flex-end (bottom) */
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center; /* Change to: flex-start (left), center (center), flex-end (right) */
  background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.6)));
  background: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
}

.pixgallery-hexagon-caption-center {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center; /* Change to: flex-start (top), center (center), flex-end (bottom) */
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center; /* Change to: flex-start (left), center (center), flex-end (right) */
  background: -o-linear-gradient(bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
  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: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
}

.pixgallery-hexagon-caption-bottom {
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end; /* Change to: flex-start (top), center (center), flex-end (bottom) */
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center; /* Change to: flex-start (left), center (center), flex-end (right) */
  background: -o-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0.6)));
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.6));
}

.pixgallery-hexagon-caption-inner {
  color: white;
  font-family: system-ui, sans-serif;
  padding: 1em;
  pointer-events: auto;
}

/* gallery scroll */

.pixgallery-scroll {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  cursor: -webkit-grab;
  cursor: grab;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.pixgallery-scroll::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.pixgallery-scroll-child {
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

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

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

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

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