:root{
  --gallery-row-gap: 1.1rem;
}

.page--node.page--node-latest.user-logged-in.path-node.page-node-type-gallery-item
  .region.region-content {
  margin-top: 100px;
}

.toolbar-fixed #header {
  top: 78px;
}

.viewer-opened #wrapper {
  display: none;
}

#main-content p.givaudangallery {
  padding-bottom: 0;
}

.gallery-viewer-image {
  display: none;
}

.gallery.default,
body:not(.viewer-opened) .gallery.block {
  display: grid;
  grid-template-columns: repeat(3, auto);
  row-gap: var(--gallery-row-gap);
  justify-items: center;
  margin-bottom: 70px;
  justify-content: space-between;
}

.gallery.default.\34 col,
body:not(.viewer-opened) .gallery.block.\34 col {
  grid-template-columns: repeat(4, auto);
}

.gallery.default.\35 col,
body:not(.viewer-opened) .gallery.block.\35 col {
  grid-template-columns: repeat(5, auto);
}

.gallery.default.\36 col,
body:not(.viewer-opened) .gallery.block.\36 col {
  grid-template-columns: repeat(6, auto);
}

.gallery.block.\34 col.portrait .gallery-thumbnail {
  width: 200px;
  height: 300px;
}

.gallery.block.\35 col.portrait .gallery-thumbnail {
  width: 182px;
  height: 275px;
}

.gallery.block.\36 col.portrait .gallery-thumbnail {
  width: 160px;
  height: 250px;
}

.\34 col.portrait .gallery-item {
  width: 182px;
}

.\35 col.portrait .gallery-item {
  width: 182px;
}

.\36 col.portrait .gallery-item {
  width: 160px;
}

body:not(.viewer-opened) .gallery.block.\34 col {
  width: 738px;
}

body:not(.viewer-opened) .gallery.block.\35 col {
  width: 923px;
}

body:not(.viewer-opened) .gallery.block.\36 col {
  width: 1107px;
}

body:not(.viewer-opened) .gallery.default.\34 col {
  width: 738px;
}

body:not(.viewer-opened) .gallery.default.\35 col {
  width: 923px;
}

body:not(.viewer-opened) .gallery.default.\36 col {
  width: 1107px;
}

.node--type-core-content-item.one-column .gallery.default,
.node--type-core-content-item.one-column .gallery.block {
  grid-template-columns: repeat(4, auto);
}

.gallery.default[data-size="2"],
.gallery.block[data-size="2"] {
  grid-template-columns: repeat(2, auto);
  justify-content: initial;
}

body.page-node-type-core-content-item:not(.viewer-opened) .gallery.default,
body.page-node-type-core-content-item:not(.viewer-opened) .gallery.block {
  width: 100%;
  margin: auto;
}

body.page-node-type-core-content-item .gallery.default,
body.page-node-type-core-content-item .gallery.block {
  justify-content: space-between;
}

body:not(.viewer-opened) .gallery.default,
body:not(.viewer-opened) .gallery.block {
  width: 554px;
  margin: auto;
}

.two-columns .gallery.block,
.two-columns .gallery.default {
  grid-template-columns: repeat(3, auto);
  --gallery-row-gap: 40px;
}

.gallery.default .gallery-thumbnail,
.gallery.block .gallery-thumbnail {
  position: relative;
  width: 174px;
  height: 174px;
}

.gallery.default
  .gallery-thumbnail
  #main-content
  .gallery.default
  .gallery-thumbnail
  img,
#main-content .gallery.block .gallery-thumbnail img {
  width: auto;
}

.gallery.block .gallery-thumbnail::after {
  content: "";
  background-color: #1d1d1d;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 5;
  top: 0;
  left: 0;
  /*display: none;*/
  background-image: url("../icons/ico_watch.svg");
  background-repeat: no-repeat;
  background-position: center 54%;
  background-size: 35px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, background-position 0.5s ease-in-out;
}

.gallery.block .gallery-thumbnail:hover::after {
  display: block;
  opacity: 1;
  background-position: center 50%;
}

.gallery-item {
  width: 174px;
}

.gallery-caption {
  margin-top: 0.5rem;
  color: var(--dark-grey);
}

.gallery-caption h5 {
  letter-spacing: -0.16px;
}

.gallery-text {
  display: none;
}

#main-content .gallery-caption p {
  font-size: var(--font-body-medium);
  line-height: var(--line-height-medium);
  padding-bottom: 0;
}

/** viewer */

body.viewer-opened {
  height: 100vh;
  overflow: hidden;
}

#gallery-viewer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  background-color: var(--grey-extra-light);
  width: 100vw;
  height: 100vh;
  z-index: 10000;
}

.viewer-opened #gallery-viewer {
  display: block;
}

#close-viewer {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  border: 0;
  background-color: transparent;
  background-image: url("../../graph_element/images/close.svg");
  width: 2rem;
  height: 2rem;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
}

#close-viewer svg {
  display: none;
}

.viewer-opened .gallery.block {
  display: block;
}

.viewer-opened .gallery-text {
  color: var(--dark-grey);
  display: block;
  line-height: var(--line-height-medium);
  font-size: var(--font-body-medium);
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  width: 80.1vh;
  top: calc(100% + 60px);
}

.viewer-opened .gallery-viewer-image {
  display: flex;
  justify-content: center;
  padding: 0 100px;
  box-sizing: border-box;
  max-height: 70vh;
}

.viewer-opened .gallery-viewer-image img {
  max-width: 100%;
  border: 0;
  height: 54vh;
  object-fit: contain;
  max-height: 100%;
}

.viewer-opened .gallery-thumbnail {
  display: none;
}

.viewer-opened .gallery-caption {
  display: none;
}

#gallery-viewer-slider {
  margin-top: 13vh;
  position: relative;
  height: 54vh;
}

#gallery-viewer .slick-arrow {
  width: 54px;
  height: 54px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  bottom: 0;
  margin: auto;
  position: absolute;
  z-index: 1;
}

.gallery .slick-arrow.slick-disabled {
  opacity: 0.5;
  cursor: default;
}

#gallery-viewer-next {
  right: 10%;
}

#gallery-viewer-prev {
  left: 10%;
}

#gallery-viewer-counter {
  font-family: var(--title-font);
  line-height: 1.75rem;
  width: 80.1vh;
  font-size: 1.125rem;
  color: var(--dark-grey);
  margin: 1rem auto;
}

#gallery-viewer .slick-slide {
  transition: transform 0.2s;
  position: relative;
}

#gallery-viewer .slick-list {
  overflow: visible;
}

#gallery-viewer-counter .separator {
  margin: 0 0.5rem;
}

#gallery-viewer-counter .total {
  position: relative;
  transition-delay: 0.2s;
}

#gallery-viewer-counter.animated span {
  top: 0;
  opacity: 1;
}

#gallery-viewer-slider .gallery-viewer-image picture {
  height: 54vh;
  width: 80.1vh;
}

/* Slider mode*/

.gallery.slider .gallery-thumbnail {
  display: none;
}

.gallery.slider .gallery-viewer-image {
  display: block;
}

.gallery.slider .gallery-viewer-image img {
  max-height: 398px;
  margin: auto;
  object-fit: contain;
}

.gallery.slider-title,
.gallery.slider {
  width: 744px;
  margin: auto;
  max-width: 100%;
}

.gallery.slider .gallery-item {
  width: 100%;
  height: auto;
}

.gallery.slider .gallery-caption {
  margin-top: 1rem;
  min-height: 3rem;
}

.gallery.slider .slick-arrow {
  background-color: transparent;
  position: absolute;
  margin: auto;
  z-index: 1;
  border: 0;
  height: 20px;
  top: 184px;
  bottom: unset;
  background-color: #fff;
  display: flex;
  align-items: center;
  border-radius: 3px;
}

.gallery.slider .slick-arrow svg path {
  fill: var(--dark-grey);
}

.gallery.slider .prev {
  left: 20px;
}

.gallery.slider .next {
  right: 20px;
}

.gallery.slider.bg-grey .next {
  right: calc(((var(--doc-width) - 744px) / 2) - 4rem);
  top: 284px;
}

.gallery.slider.bg-grey .prev {
  left: calc(((var(--doc-width) - 744px) / 2) - 4rem);
  top: 284px;
}

.gallery.slider ul.slick-dots li button::before {
  content: " ";
  background-color: #000000;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.gallery.slider.slick-dotted.slick-slider {
  margin-bottom: 45px;
}

.gallery.slider ul.slick-dots {
  bottom: -40px;
}

.gallery.slider.bg-grey ul.slick-dots {
  margin-left: calc(-1 * (var(--doc-width) - 744px) / 2);
  bottom: 2rem;
}

.two-columns .gallery.slider.bg-grey ul.slick-dots {
  margin-left: auto;
}

.page-node-type-gallery-item .gallery {
  margin-top: 150px;
}

.gallery .slick-dots li button {
  position: relative;
}

.page-node-type-gallery-item:not(.viewer-opened)
  .gallery-title.gallery.with-title
  h2 {
  text-align: center;
  color: #000000;
}

.page-node-type-gallery-item:not(.viewer-opened)
  .gallery-title.gallery.block.with-title {
  padding: 100px 16px 45px;
  justify-content: center;
}

body:not(.viewer-opened) .gallery.with-subtitle.gallery-subtitle h3 {
  text-align: center !important;
  font-size: var(--font-body-large) !important;
  line-height: var(--line-height-large) !important;
  font-family: var(--text-font) !important;
  font-weight: 400 !important;
  margin-bottom: 2rem !important;
  color: #000;
}

body:not(.viewer-opened) .gallery.with-subtitle.gallery-subtitle,
body:not(.viewer-opened) .gallery.with-title.gallery-title {
  padding-bottom: 0;
  justify-content: center;
  text-align: center;
}

body:not(.viewer-opened) .gallery.with-title.gallery-title h2 {
  padding-bottom: 1rem !important;
  margin-bottom: 0.875rem !important;
  color: #000000;
}

body:not(.viewer-opened) .gallery.with-title:not(.gallery-title),
.page-node-type-gallery-item:not(.viewer-opened)
  .gallery.block.with-title:not(.gallery-title) {
  padding-top: 0 !important;
}

.page-node-type-gallery-item:not(.viewer-opened) .gallery.block.with-title {
  margin: 0px auto;
}

.page-node-type-gallery-item:not(.viewer-opened) .gallery.block {
  width: 1120px;
  padding-left: 16px;
  padding-right: 16px;
  margin: 150px auto;
  box-sizing: border-box;
}

/* merge */
.gallery .main-action.javali-buttons {
  font-size: 12px;
  line-height: 12px;
}

/* Grey bg */
body:not(.viewer-opened) .gallery.bg-grey {
  background-color: var(--grey-extra-light);
  margin: 0;
  padding: 100px calc((var(--doc-width) - 554px) / 2);
  margin-left: calc(-1 * (var(--doc-width) - 1088px) / 2);
}

body:not(.viewer-opened) .gallery.slider.bg-grey {
  background-color: var(--grey-extra-light);
  margin: 0;
  padding: 100px calc((var(--doc-width) - 744px) / 2);
  margin-left: calc(-1 * (var(--doc-width) - 1088px) / 2);
  box-sizing: content-box;
}

body:not(.viewer-opened) .section-wrapper.wide .gallery.\34 col.bg-grey,
body:not(.viewer-opened) .section-wrapper.wide .gallery.\35 col.bg-grey,
body:not(.viewer-opened) .section-wrapper.wide .gallery.\36 col.bg-grey {
  margin-left: calc(-1 * (var(--doc-width) - 924px) / 2);
}

body:not(.viewer-opened) .section-wrapper.wide .gallery.\34 col.bg-grey,
body:not(.viewer-opened) .section-wrapper.wide .gallery.\35 col.bg-grey,
body:not(.viewer-opened) .section-wrapper.wide .gallery.\36 col.bg-grey {
  margin-left: calc(-1 * (var(--doc-width) - 704px) / 2);
}

body:not(.viewer-opened) .section-wrapper.small .gallery.\34 col.bg-grey,
body:not(.viewer-opened) .section-wrapper.small .gallery.\35 col.bg-grey,
body:not(.viewer-opened) .section-wrapper.small .gallery.\36 col.bg-grey {
  margin-left: calc(-1 * (var(--doc-width) - 554px) / 2);
}

/* 
body:not(.viewer-opened) .section-wrapper.wide .gallery.\36 col.bg-grey{
  margin-left: calc((var(--doc-width) - 554px) / 2);
}
 */
body.page-node-type-gallery-item:not(.viewer-opened) .gallery.slider.bg-grey {
  margin-left: 0;
}

body:not(.viewer-opened) .section-wrapper.small .gallery.bg-grey {
  margin-left: calc(-1 * (var(--doc-width) - 904px) / 2);
}

body:not(.viewer-opened) .section-wrapper.wide .gallery.bg-grey {
  margin-left: calc(-1 * (var(--doc-width) - 1120px) / 2);
}

body:not(.viewer-opened) .section-wrapper.full .gallery.bg-grey {
  padding: 100px calc((var(--doc-width) - 554px) / 2);
  margin-left: 0;
}

body:not(.viewer-opened) .section-wrapper.full .gallery.slider.bg-grey {
  padding: 100px calc((var(--doc-width) - 744px) / 2);
}

body:not(.viewer-opened) .two-columns .gallery.bg-grey {
  padding: 100px 0;
  box-sizing: border-box;
  margin-left: 0;
}

/************** PORTRAIT *******************/
body:not(.viewer-opened) .gallery.block.portrait {
  width: 1088px;
  justify-content: space-around;
}

body:not(.viewer-opened) .section-wrapper.small .gallery.block.portrait {
  width: 100%;
}

.portrait .gallery-item {
  width: 250px;
}

.gallery.block.portrait .gallery-thumbnail {
  width: 250px;
  height: 375px;
}

body:not(.viewer-opened) .two-columns .gallery.block.portrait {
  width: 100%;
}

.two-columns .portrait .gallery-item {
  width: 210px;
}

.two-columns .gallery.block.portrait .gallery-thumbnail {
  width: 210px;
  height: 315px;
}

@media (min-width: 768px) and (max-width: 1119px) {
  .two-columns .gallery.slider.bg-grey ul.slick-dots {
    width: 734px;
  }

  body:not(.viewer-opened) .gallery.with-title.gallery-title h2 {
    margin-bottom: 0.875rem !important;
    padding-bottom: 1rem !important;
  }

  body:not(.viewer-opened) .gallery.with-title.gallery-title {
    padding-bottom: 0 !important;
  }

  .page-node-type-gallery-item:not(.viewer-opened) .gallery.block {
    width: 768px;
    padding-left: 30px;
    padding-right: 30px;
  }

  #gallery-viewer .slick-arrow {
    display: none !important;
  }

  #main-content .story-section .gallery.gallery-title h2 {
    font-size: 2rem;
    line-height: 2.375rem;
  }

  /* Grey bg */
  body:not(.viewer-opened) .gallery.bg-grey,
  body:not(.viewer-opened) .section-wrapper.small .gallery.bg-grey,
  body:not(.viewer-opened) .section-wrapper.wide .gallery.bg-grey,
  body:not(.viewer-opened) .section-wrapper.full .gallery.bg-grey {
    padding: 100px calc((var(--doc-width) - 554px) / 2);
    margin-left: calc(-1 * (var(--doc-width) - 738px) / 2);
  }

  body:not(.viewer-opened) .gallery.slider.bg-grey,
  body:not(.viewer-opened) .section-wrapper.small .gallery.slider.bg-grey,
  body:not(.viewer-opened) .section-wrapper.wide .gallery.slider.bg-grey,
  body:not(.viewer-opened) .section-wrapper.full .gallery.slider.bg-grey {
    padding: 100px calc((var(--doc-width) - 744px) / 2);
    max-width: none;
  }

  body:not(.viewer-opened) .section-wrapper.full .gallery.bg-grey {
    margin-left: 0;
  }

  body:not(.viewer-opened) .two-columns .gallery.bg-grey,
  body:not(.viewer-opened) .gallery.slider.bg-grey {
    padding: 100px calc((var(--doc-width) - 738px) / 2);
    margin-left: calc(-1 * (var(--doc-width) - 738px) / 2);
    box-sizing: content-box;
    max-width: 100%;
  }

  .gallery.slider.bg-grey .next {
    right: calc(((var(--doc-width) - 738px) / 2) + 1rem);
    top: 284px;
  }

  .gallery.slider.bg-grey .prev {
    left: calc(((var(--doc-width) - 738px) / 2) + 1rem);
    top: 284px;
  }
}

@media (max-width: 767px) {

  .gallery.default.\34 col,
  body:not(.viewer-opened) .gallery.block.\34 col,
  .gallery.default.\35 col,
  body:not(.viewer-opened) .gallery.block.\35 col,
  .gallery.default.\36 col,
  body:not(.viewer-opened) .gallery.block.\36 col {
    grid-template-columns: repeat(2, auto);
  }

  body:not(.viewer-opened) .gallery.block.\34 col,
  body:not(.viewer-opened) .gallery.block.\35 col,
  body:not(.viewer-opened) .gallery.block.\36 col {
    width: 320px;
  }

  body:not(.viewer-opened) .gallery.with-title.gallery-title h2 {
    padding-bottom: 0.75rem !important;
  }

  #main-content .story-section .gallery.gallery-title h2 {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  body:not(.viewer-opened) .gallery.with-title.gallery-title {
    padding-bottom: 0 !important;
  }

  body:not(.viewer-opened) .section-wrapper.small .gallery.bg-grey,
  body:not(.viewer-opened) .section-wrapper.wide .gallery.bg-grey {
    padding: 100px calc((1 * var(--doc-width) - 320px) / 2);
    margin-left: calc(-1 * (var(--doc-width) - (0.9 * var(--doc-width))) / 2);
  }

  body:not(.viewer-opened) .gallery.bg-grey,
  body:not(.viewer-opened) .section-wrapper.full .gallery.bg-grey,
  body:not(.viewer-opened) .two-columns .gallery.bg-grey,
  body:not(.viewer-opened) .node--type-landing-page .gallery.slider.bg-grey,
  body:not(.viewer-opened) .section-wrapper.full .gallery.slider.bg-grey {
    padding: 100px calc((var(--doc-width) - 320px) / 2);
  }

  body:not(.viewer-opened) .node--type-landing-page .gallery.bg-grey,
  body:not(.viewer-opened) .node--type-landing-page .gallery.slider.bg-grey,
  body:not(.viewer-opened) .two-columns .gallery.bg-grey {
    margin-left: calc(-1 * (var(--doc-width) - 320px) / 2);
    box-sizing: content-box;
  }

  .gallery.slider.bg-grey ul.slick-dots {
    margin-left: calc(-1 * (var(--doc-width) - 320px) / 2);
    width: 320px;
  }

  #gallery-viewer .slick-arrow {
    display: none !important;
  }

  .gallery.slider-title,
  .gallery.slider {
    width: 320px;
  }

  .gallery.slider .gallery-viewer-image {
    background-color: transparent;
  }

  .gallery.slider .gallery-caption {
    color: #000000;
    padding-left: 0;
    display: block;
    top: 85%;
    padding: 0;
    height: auto;
  }

  div.gallery.default,
  div.gallery.block {
    grid-template-columns: repeat(2, auto);
  }

  body:not(.viewer-opened) .gallery.default,
  body:not(.viewer-opened) .gallery.block {
    width: 320px;
  }

  body:not(.viewer-opened) .gallery-viewer-image img {
    height: 398px;
  }

  .page-node-type-gallery-item .gallery.block {
    width: 320px;
    padding-left: 0;
    padding-right: 0;
    margin: auto;
  }

  .gallery-item {
    width: 150px;
  }

  .gallery.default .gallery-thumbnail,
  .gallery.block .gallery-thumbnail {
    width: 150px;
    height: 150px;
  }

  .two-columns .gallery.default,
  .two-columns .gallery.block,
  .node--type-core-content-item.one-column .gallery.default,
  .node--type-core-content-item.one-column .gallery.block {
    grid-template-columns: repeat(2, auto);
  }

  .page-node-type-gallery-item:not(.viewer-opened) .gallery.block {
    width: 320px;
    padding-left: 0;
    padding-right: 0;
  }

  body:not(.viewer-opened) .gallery.with-subtitle.gallery-subtitle h3 {
    margin-bottom: 1.125rem !important;
  }

  .portrait .gallery-item,
  .two-columns .portrait .gallery-item {
    width: 150px;
  }

  .gallery.block.portrait .gallery-thumbnail,
  .two-columns .gallery.block.portrait .gallery-thumbnail {
    width: 150px;
    height: 225px;
  }
}

@media (orientation: portrait) {
  .viewer-opened .gallery.block {
    display: block;
  }

  .viewer-opened .gallery-viewer-image img {
    object-position: center;
  }

  .viewer-opened .gallery-viewer-image {
    padding: 0 1.25rem;
  }

  .viewer-opened .gallery-text,
  #gallery-viewer-counter {
    width: calc(100% - 2.5rem);
  }

  #gallery-viewer .slick-arrow {
    position: fixed;
    bottom: 0;
    top: unset;
  }

  #gallery-viewer-next {
    right: 0;
  }

  #gallery-viewer-prev {
    left: 0;
  }

  #gallery-viewer-slider .gallery-viewer-image picture {
    aspect-ratio: unset;
    height: auto;
    width: auto;
  }

  #gallery-viewer-slider {
    margin-top: 10vh;
    height: 57vh;
  }

  .viewer-opened .gallery-text {
    top: calc(57vh + 3rem);
  }
}

@media screen and (min-width: 1921px) {
  body:not(.viewer-opened) .gallery.with-title.gallery-title h2 {
    padding-bottom: 1.4375rem !important;
  }

  body:not(.viewer-opened) .gallery.bg-grey {
    padding: 100px calc((var(--doc-width) - 850px) / 2);
    margin-left: calc(-1 * (var(--doc-width) - 1468px) / 2);
  }

  body:not(.viewer-opened) .gallery.slider.bg-grey {
    padding: 100px calc((var(--doc-width) - 850px) / 2);
    margin-left: calc(-1 * (var(--doc-width) - 1468px) / 2);
  }

  body:not(.viewer-opened) .section-wrapper.small .gallery.bg-grey {
    margin-left: calc(-1 * (var(--doc-width) - 1400px) / 2);
  }

  body:not(.viewer-opened) .section-wrapper.wide .gallery.bg-grey {
    margin-left: calc(-1 * (var(--doc-width) - 1500px) / 2);
  }

  body:not(.viewer-opened) .section-wrapper.full .gallery.bg-grey,
  body:not(.viewer-opened) .section-wrapper.full .gallery.slider.bg-grey {
    margin-left: 0;
    padding: 100px calc((var(--doc-width) - 850px) / 2);
  }

  body:not(.viewer-opened) .two-columns .gallery.bg-grey {
    padding: 100px 25px;
    box-sizing: content-box;
    margin-left: 0;
  }

  body:not(.viewer-opened) .gallery.default.\34 col,
  body:not(.viewer-opened) .gallery.default.\35 col,
  body:not(.viewer-opened) .gallery.default.\36 col {
    width: auto;
  }

  body:not(.viewer-opened) .gallery.default,
  body:not(.viewer-opened) .gallery.block,
  body.page-node-type-core-content-item:not(.viewer-opened) .gallery.default,
  body.page-node-type-core-content-item:not(.viewer-opened) .gallery.block {
    width: 850px;
  }

  .gallery-item {
    width: 250px;
  }

  .gallery.default .gallery-thumbnail,
  .gallery.block .gallery-thumbnail {
    width: 250px;
    height: 250px;
  }

  #gallery-viewer-counter {
    line-height: var(--line-height-medium);
    font-size: var(--font-body-medium);
  }

  #gallery-viewer .slick-arrow svg {
    width: 32px;
    height: 18px;
  }

  #close-viewer {
    height: 32px;
  }

  #close-viewer svg {
    height: 32px;
    width: 32px;
  }

  .gallery.slider-title,
  .gallery.slider {
    width: 850px;
  }

  .gallery.slider .gallery-viewer-image img {
    max-height: 450px;
  }

  .gallery.slider .slick-arrow {
    top: 215px;
  }

  body:not(.viewer-opened) .gallery.with-title.gallery-title {
    padding-bottom: 0 !important;
  }

  /************** PORTRAIT *******************/
  body:not(.viewer-opened) .gallery.block.portrait {
    width: 1400px;
  }

  body:not(.viewer-opened) .section-wrapper.small .gallery.block.portrait {
    /* width: 100%; */
  }

  .portrait .gallery-item {
    width: 400px;
  }

  .gallery.block.portrait .gallery-thumbnail {
    width: 400px;
    height: 600px;
  }

  .two-columns .portrait .gallery-item {
    width: 260px;
  }

  .two-columns .gallery.block.portrait .gallery-thumbnail {
    width: 260px;
    height: 390px;
  }
}

@media all and (min-width: 3441px) {
  .two-columns .gallery.block,
  .two-columns .gallery.default,
  .gallery.default,
  .gallery.block {
    --gallery-row-gap: 4rem;
  }

  .gallery.block .gallery-thumbnail::after {
    background-size: 3rem;
  }

  body:not(.viewer-opened) .gallery.bg-grey {
    padding: 100px calc((var(--doc-width) - 1275px) / 2);
    margin-left: calc(-1 * (var(--doc-width) - 2218px) / 2);
  }

  body:not(.viewer-opened) .section-wrapper.small .gallery.bg-grey {
    padding: 100px calc((var(--doc-width) - 1275px) / 2);
    margin-left: calc(-1 * (var(--doc-width) - 1896px) / 2);
  }

  body:not(.viewer-opened) .section-wrapper.wide .gallery.bg-grey {
    padding: 100px calc((var(--doc-width) - 1275px) / 2);
    margin-left: calc(-1 * (var(--doc-width) - 2250px) / 2);
  }

  body:not(.viewer-opened) .section-wrapper.full .gallery.bg-grey {
    padding: 10rem calc((var(--doc-width) - 1275px) / 2);
  }

  body:not(.viewer-opened)
    .two-columns
    .gallery.with-title.gallery-title.bg-grey {
    padding: 100px calc((1350px - 1275px) / 2) 0 !important;
  }

  body:not(.viewer-opened) .two-columns .gallery.bg-grey,
  body:not(.viewer-opened) .two-columns .gallery.slider.bg-grey {
    padding: 10rem 37.5px;
    box-sizing: content-box;
    margin-left: 0;
  }

  body:not(.viewer-opened) .two-columns .gallery.slider.bg-grey .next {
    right: 2rem;
  }

  body:not(.viewer-opened) .two-columns .gallery.slider.bg-grey .prev {
    left: 2rem;
  }

  #gallery-viewer-slider {
    height: 80vh;
  }

  #gallery-viewer-slider .gallery-viewer-image picture,
  .viewer-opened .gallery-viewer-image img {
    height: 64vh;
  }

  #gallery-viewer-counter,
  .viewer-opened .gallery-text,
  #gallery-viewer-slider .gallery-viewer-image picture {
    width: 96.6vh;
  }

  .viewer-opened .gallery-text {
    margin-top: 100px;
  }

  #gallery-viewer-counter {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 18vh;
  }

  #gallery-viewer-counter {
    line-height: 5rem !important;
    font-size: 4rem !important;
  }

  #gallery-viewer .slick-arrow svg {
    width: 48px;
    height: 25px;
  }

  #close-viewer svg {
    height: 64px;
    width: 64px;
  }

  .page-node-type-gallery-item:not(.viewer-opened) .gallery.block {
    width: var(--grid-4k);
    padding-left: 16px;
    padding-right: 16px;
    margin: 350px auto;
  }

  .gallery.default .gallery-thumbnail,
  .gallery.block .gallery-thumbnail {
    width: 375px;
    height: 375px;
  }

  .gallery-item {
    width: 375px;
  }

  body:not(.viewer-opened) .section-wrapper.full .gallery.bg-grey,
  body:not(.viewer-opened) .section-wrapper.full .gallery.slider.bg-grey {
    margin-left: 0;
    padding: 100px calc((var(--doc-width) - 1275px) / 2);
  }

  body:not(.viewer-opened) .gallery.default,
  body:not(.viewer-opened) .gallery.block,
  body.page-node-type-core-content-item:not(.viewer-opened) .gallery.default,
  body.page-node-type-core-content-item:not(.viewer-opened) .gallery.block {
    width: 1275px;
  }

  body:not(.viewer-opened) .gallery.with-title.gallery-title h2 {
    padding-bottom: 3.75rem !important;
    margin-bottom: 3.75rem !important;
  }

  body:not(.viewer-opened) .gallery.with-title.gallery-title.bg-grey {
    padding: 100px calc((var(--doc-width) - 1275px) / 2) 0 !important;
  }

  .gallery.slider-title,
  .gallery.slider {
    width: 1275px;
  }

  body:not(.viewer-opened) .gallery.slider.bg-grey {
    padding: 100px calc((var(--doc-width) - 1275px) / 2);
    margin-left: calc(-1 * (var(--doc-width) - 2218px) / 2);
  }

  .gallery.slider.bg-grey ul.slick-dots {
    left: 0;
    right: 0;
    margin: auto;
  }

  .gallery.slider .gallery-viewer-image img {
    max-height: 675px;
  }

  .gallery.slider .slick-arrow {
    top: 320px;
    height: 50px;
    width: 55px;
  }

  .gallery.slider.bg-grey .prev {
    left: calc(((var(--doc-width) - 1275px) / 2) + 2rem);
    top: 395px;
  }

  .gallery.slider.bg-grey .next {
    right: calc(((var(--doc-width) - 1275px) / 2) + 2rem);
    top: 395px;
  }

  .two-columns .gallery.slider.bg-grey .next,
  .two-columns .gallery.slider.bg-grey .prev {
    top: 450px;
  }

  .gallery.slider .slick-arrow svg {
    width: 40px;
    height: 15px;
  }

  .gallery.slider ul.slick-dots li button::before {
    width: 20px;
    height: 20px;
  }

  .gallery.slider .slick-dots li,
  .gallery.slider .slick-dots li button {
    width: 50px;
    height: 50px;
  }

  .gallery.slider ul.slick-dots {
    bottom: 0 !important;
    position: relative;
  }

  body:not(.viewer-opened) .gallery.with-subtitle.gallery-subtitle h3 {
    padding-bottom: 0;
  }

  .page-node-type-story-item #main-content .story-section h2 {
    margin-bottom: 0.5em !important;
    padding-bottom: 0.5em !important;
  }

  body:not(.viewer-opened) .gallery.block.\34 col,
  body:not(.viewer-opened) .gallery.block.\35 col,
  body:not(.viewer-opened) .gallery.block.\36 col {
    width: 110%;
    margin-left: -5%;
  }
  

  /************** PORTRAIT *******************/
  body:not(.viewer-opened) .gallery.block.portrait {
    width: 1896px;
  }

  .portrait .gallery-item {
    width: 550px;
  }

  .gallery.block.portrait .gallery-thumbnail {
    width: 550px;
    height: 825px;
  }

  .two-columns .portrait .gallery-item {
    width: 390px;
  }

  .two-columns .gallery.block.portrait .gallery-thumbnail {
    width: 390px;
    height: 585px;
  }
}
