.gallery {
  display: flex;
  /*	margin-left: 12vw;*/
  padding-right: 12vw;
}
.gallery__item {
  margin: 0 5vw;
  display: grid;
  grid-template-areas: '... ...'
    '... gallery-image'
    '... gallery-cap';
  grid-template-columns: 8rem 21vmax;
  grid-template-rows: 8rem 28vmax 3rem;
}
.gallery__item.gallery-item {
  grid-template-columns: 8rem 45vmax;
  grid-template-rows: 2rem 24vmax 3rem;
}
.gallery__item.gallery-item.event-parent-box-figure {
  padding-top: 0;
}
.gallery-item {
  position: relative;
}
.gallery-item.video .gallery__item-img::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background-image: url(../images/play.svg);
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center center;
}
.gallery__item_box:nth-child(even) {
  padding-top: 10vh;
}
.gallery__section_box {
  margin-left: 0vw;
  margin-right: 15vw;
}
.gallery__section_box.intro {
  margin-left: 0px;
  margin-right: 100px;
}
.gallery__section_box.last_box {
  height: auto;
}
.gallery__section_box.last_box .gallery__item.gallery-item {
  display: flex;
  width: 600px;
  height: 100%;
}
.gallery__section_box.gallery__small-section_box:nth-child(odd) {
  padding-top: 0vh;
}
.gallery__item-img {
  grid-area: gallery-image;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  transform-origin: 50% 100%;
}
.gallery__item-img::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background: #000;
}
.gallery__item-imginner {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
}
.gallery__item-caption {
  grid-area: 1 / 1 / 4 / 3;
  display: grid;
  grid-template-areas: '... gallery-number'
    'gallery-link ...'
    'gallery-title gallery-tags';
  grid-template-columns: 8rem auto;
  grid-template-rows: 8rem auto 3rem;
  position: relative;
}
.gallery__item.text-item .gallery__item-caption {
  grid-template-areas:
    'parent-title ...'
    '... ...'
    'gallery-title ...'
    'content-section ...';
  grid-template-columns: 100% auto;
  grid-template-rows: auto;
  align-items: start;
  grid-area: gallery-cap;
  text-align: left;
  position: relative;
  top: -50px;
}
.gallery__item.text-item .gallery__item-caption .content-section {
  grid-area: content-section;
  margin-top: 15px;
  width: 90%;
  height: 100px;
  overflow: auto;
}
.gallery__item.text-item .gallery__item-caption .content-section h4 {
  text-transform: uppercase;
  color: #e0d1bc;
  margin-bottom: 20px;
}
.gallery__item.text-item .gallery__item-caption .content-section p {
  white-space: break-spaces;
  width: 100%;
  text-shadow: 1px 1px 3px #0000008f;
}
.gallery__item.text-item .gallery__item-caption .gallery__item-title {
  /*  bottom: -50px; */
  margin-bottom: 0px;
  text-shadow: 1px 1px 3px #00000069;
  position: static;
  line-height: normal;
  text-align: left;
  width: 100%;
  display: block;
}
.gallery__item:nth-child(even).text-item {
  padding-top: 0;
}
.gallery__item-number {
  grid-area: gallery-number;
  font-size: 6rem;
  font-size: clamp(2.5rem, 9vw, 6.5rem);
  justify-self: end;
  padding-right: 2rem;
  color: #e0d1bc;
}
.gallery__item-title {
  grid-area: gallery-title;
  margin: 0;
  font-size: 3rem;
  font-size: clamp(2rem, 5vw, 3rem);
  color: #e0d1bc;
  position: absolute;
  bottom: 0;
  left: 100%;
  text-transform: uppercase;
}
.gallery__item-title span {
  font-size: 1.5rem;
}
.gallery__item-number, .gallery__item-title, .gallery__text {
  font-family: 'SapientSansLight, Arial, sans-serif';
  font-weight: 400;
  /*	font-style: italic;*/
  align-self: center;
  color: #e0d1bc;
}
.gallery__item-link {
  grid-area: gallery-link;
  align-self: end;
  font-size: 1.5rem;
  background: #e0d1bc;
  color: #e0d1bc;
  text-decoration: underline;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.gallery__item-link:focus, .gallery__item-link:hover {
  background: #e0d1bc;
  color: #e0d1bc;
  text-decoration: none;
}
.gallery__item-tags {
  grid-area: gallery-tags;
  justify-self: end;
  font-size: 1.5rem;
  display: grid;
  grid-auto-flow: column;
  grid-gap: 1rem;
  cursor: pointer;
}
.gallery__text {
  font-size: 20vw;
  line-height: 0.8;
  margin: 0 10vw 0 14vw;
  text-transform: lowercase;
  color: #e0d1bc;
  color: transparent;
  -webkit-text-stroke: 1px #978c77;
  text-stroke: 1px #978c77;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}
.gallery__text-inner {
  display: block;
}
.media .gallery__item {
  margin: 0 15vw;
}
.media .gallery__item.gallery-item.year-item {
  margin: 0;
  /*  height: auto;*/
  width: 300px;
  align-items: center;
  justify-content: end;
  grid-template-columns: 0vw 0vmax;
  padding-left: 250px;
  padding-right: 50px;
}
.media .gallery__item.gallery-item.year-item.year-first {
  padding-left: 0;
}
.media .gallery__item-box .gallery__item-title {
  position: relative;
  /*  top: -50px;*/
}
.media .gallery__item.gallery-item.year-item::before {
  /*  display: none;*/
  left: -60%;
}
.media .gallery__item.gallery-item {
  grid-template-columns: 100% 0vmax;
  grid-template-rows: 70% 40vmax 0rem;
  margin: 0 0px;
  margin-left: 200px;
  align-items: center;
  width: 100%;
  height: 100vh;
  max-width: 400px;
}
.media .gallery__item:nth-child(even), .media .gallery__item {
  padding-top: 10vh;
}
.media .gallery__item {
  /*	grid-template-areas: 'gallery-image';*/
}
.media .gallery__item.gallery-item .gallery__item-caption {
  position: absolute;
  bottom: -50px;
}
.media .gallery__item .gallery__item-box {
  position: relative;
  height: 100%;
  width: 100%;
  max-height: 500px;
  display: flex;
  align-items: center;
  /*    justify-content: center;*/
}
.media .gallery__item .gallery__item-box::before {
  /*	content: "";*/
  position: absolute;
  left: -100%;
  top: 50%;
  transform: translate(0%, -50%);
  height: 2px;
  width: 1100px;
  background: #b89241;
  opacity: 0.7;
  z-index: -1;
}
.media .gallery__item .gallery__item-box::after {
  /*
  content: "";
  position: absolute;
  left: -20px;
  top: 0;
  z-index: 10;
  width: 70px;
  height: 100%;
  background-image: url(../images/press-pattern.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  opacity: 0;
*/
  /*  content: "";*/
  position: absolute;
  left: -45%;
  top: 50%;
  transform: translate(0%, -50%);
  height: 2px;
  width: 60%;
  background: #b89241;
  opacity: 0.7;
  z-index: -1;
}
.media .gallery__item .gallery__item-box::after {
  left: auto;
  right: -20px;
}
.media .gallery__item .gallery__item-img::before {
  opacity: 0;
}
.media__item-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  /* box-shadow: inset 0px 0px 0px 10px #0000000d; */
  min-width: 400px;
  max-height: 450px;
  position: relative;
}
.media__item-img .uni-link {
  background: #000;
  opacity: 0;
}
.media__item-img .uni-link:hover {
  opacity: 0.2;
}
.media__item-img::before {
  content: "";
  position: absolute;
  left: -50%;
  top: 50%;
  transform: translate(0%, -50%);
  height: 2px;
  width: 100%;
  background: #b89241;
  opacity: 1;
  z-index: -1;
}
.media .gallery__item-box .gallery__item-title::before {
  content: "";
  position: absolute;
  left: -250px;
  top: 50%;
  transform: translate(0%, -50%);
  height: 2px;
  width: 400px;
  background: #b89241;
  opacity: 1;
  z-index: -1;
}
.media__item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 30px;
}
.media .gallery__item .gallery__item-img::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background-image: url(../images/gallery-icon.svg);
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center center;
  opacity: 0;
}
.media {
  position: relative;
}
/*
.media .gallery__item.gallery-item .media__item-img::before {
    content: "";
  position: absolute;
  left: -45%;
  top: 50%;
  transform: translate(0%, -50%);
  height: 2px;
  width: 60%;
  background: #b89241;
  opacity: 0.7;
  z-index: -1;
}
.media .gallery__item.gallery-item.long-line .media__item-img::before {
    content: "";
  position: absolute;
  left: -500px;
  top: 50%;
  transform: translate(0%, -50%);
  height: 2px;
  width: 200%;
  background: #b89241;
  opacity: 0.7;
  z-index: -1;
}
*/
.media .gallery__item.gallery-item.long-line.isolated-sec.video .media__item-img::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(0%, 0%);
  width: 100%;
  height: 100%;
  opacity: 0.2;
  background: #000;
  z-index: 0;
}
.media .gallery__item.gallery-item.long-line.isolated-sec.video .media__item-img::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background-image: url(../images/play.svg);
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center center;
}
.media .gallery__item.gallery-item.long-line.isolated-sec .media__item-img {
  max-height: 100%;
  width: 100%;
  position: relative;
  min-width: max-content;
}
.media .gallery__item.gallery-item.long-line.isolated-sec.video .media__item-img img {
  padding: 0;
}
/*
.media .gallery__item.gallery-item.year-item::before{
	content: "";
    position: absolute;
    left: -90%;
    top: 42.8%;
    transform: translate(0%, 0%);
    height: 2px;
    width: 200%;
    background: #b89241;
    opacity: 0.7;
    z-index: -1;
}
*/
/*
main .content .gallery.media .intro-art .right-side::after{
	content: "";
    position: absolute;
    left: -90%;
    top: 42.8%;
    transform: translate(0%, 0%);
    height: 2px;
    width: 200%;
    background: #b89241;
    opacity: 0.7;
    z-index: -1;
}*/
.media .gallery__item.item-blank .gallery__item-box .media__item-img::before {
  display: none;
}
.gallery__item.gallery-item:hover .gallery__item-img::before {
  opacity: 0.2;
}