

/* --------------------- exhibitions boxes --------------------- */

.exib-box {
  width: 100%;
  flex-direction: row;
  display: flex;
  background-color: var(--bg-green);
  background-color: white;
  margin-bottom: 2rem;
  height: 16rem;
  border-style: solid;
  border-width: 0.1rem;
  border-color: var(--light-gray-d);
  padding: 2rem;
}

.exib-box img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.exib-image-box {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding-left: 2rem;
}

.exib-box-text {
  border-right-style: solid;
  border-width: 0.1rem;
  border-color: var(--light-gray-d);
  
  width: 100%;
  padding-right: 2rem;
}

.exib-box p {
  position: relative;
  padding-bottom: 0.5rem;
  color: var(--font-color-grey); 
}

.exib-title {
  font-size: var(--font-size-l);
  font-weight: 100;
  margin-bottom: 1rem;
  color: var(--dark-blue) !important;
}

.exib-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  background-color: var(--light-grey);
  width:25%;
  height: 0.2rem;
}

.exib-box-main-image {
  width: 80%;
}

.exib-box-main-image img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  float: right;
}

.exib-box-small-images-con {
  position: relative;
  width: 30%;
  padding-left: 2rem;
}

.exib-box-small-images-con img {
  display: block;
  padding-bottom: 1rem;
  opacity: 1;
  cursor: pointer;
  height: 33%;
  width: auto;
  margin-left: auto;
}

.exib-box-small-images-con img:hover {
  animation: small-img-opacity 0.5s forwards;
}

@keyframes small-img-opacity {
  0% {
    opacity: 1;
  }
  100%{
    opacity: 0.7;
  }
}

@media only screen and (max-width: 640px){
  .exib-box {
    flex-direction: column-reverse;
    height: auto;
    padding: 1rem;
  }

  .exib-image-box {
    padding-left: 0;
  }

  .exib-box-text {
    border-right-style: none;
    padding-top: 1rem;
    padding-right: 0;
  }
}

@media only screen and (max-width: 960px){
  .exib-box-small-images-con {
    padding-left: 1rem;

  }
}


/* --------------------- exhibition fullscreen images --------------------- */


.big-img-con[open] {
  display: flex;
  align-items: center;
  text-align: center;
  border: none;
  padding: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  max-width: 100%;
  max-height: 100%;
  padding: 1rem;
}

.big-img-con[open] img {
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.big-img-con[open]::backdrop {
  background: var(--fullscreen-image-background);
  animation: big-img-opacity 0.5s forwards;
}

.big-img-con img {
  display: block;
}

.close-img {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  top: 0;
  right: 0;
  background-image: url("../images/icons/img_close_icon_4.jpg");
  background-size: 100% auto;
  cursor: pointer;
  margin: 1rem;
}

.close-img::after {
  display: none;
}

@keyframes big-img-opacity {
  0% {
    opacity: 0;
  }
  100%{
    opacity: 1;
  }
}

@media only screen and (min-width: 640px){
  .big-img-con[open] {
    flex-direction: row;
  }

  .big-img-con img[dim-type-horizontal] {
    width: 80vh;
    height: auto;
  }

  .big-img-con img[dim-type-vertical] {
    width: auto;
    height: 80vh;
  }
}
