:root {
  --carousel-width: 90vw;
  --carousel-height: calc(var(--carousel-width) * var(--golden));

  /*colors*/
  --clr-primary: hsl(196, 88%, 66%);
  --clr-secondary: hsl(217, 60%, 47%);
  --clr-tertiary: #e5e2ee;
  --clr-dark: rgb(27, 29, 27);
  --clr-accent: hsl(35, 100%, 55%);
  --glass-background: rgb(153, 202, 235);
  /*background opacity*/
  --clr-dark-background: rgba(27, 29, 27, 0.2);
  /*image ration*/
  --golden: 1.6180339887498948482;
}

/*/////////////////////*/
/*gallery slider*/
.gallery-slider-section {
  height: max-content;
  padding-inline: calc((100vw - var(--page-width)) / 2);
  padding-block: 2em;
  background-color: var(--clr-secondary);
  overflow: clip;
}
.gallery-slider-section .container {
  height: max-content;
  position: relative;
  z-index: 0;
}

.gallery-slider-section .carousel-container {
  height: calc(var(--carousel-width) / var(--golden)) !important;
  position: relative;
  /* overflow-x: hidden; */
  /* overflow-y: scroll; */
}
.gallery-slider-section .carousel-container::before,
.gallery-slider-section .carousel-container::after {
  background-color: var(--clr-secondary);
  z-index: 1;
}

.gallery-slider {
  /* position: absolute;
  left: 0; */
  /* top: 3em;
  bottom: 3em; */
  width: calc(1 * var(--carousel-width));
  height: calc(var(--carousel-width) / var(--golden));
  /* display: flex;
  align-items: center;
  justify-content: flex-start;
  transition: left 325ms ease-out; */
}

/* .gallery-slide { */
/* width: var(--carousel-width);
  
  height: calc(var(--carousel-width) / var(--golden));
} */

.gallery-slide {
  width: var(--carousel-width);
  height: calc(var(--carousel-width) / var(--golden));
  padding-inline: 1em;
  display: block;
}
.gallery-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
}
.gallery-foto > img {
  object-fit: cover;
  width: var(--carousel-width);
  max-height: 70vh;
  margin: 0;
}
.porotce-bio {
  overflow-y: scroll;
}
@media screen and (max-height: 480px) and (orientation: landscape) {
  :root {
    --carousel-width: 90vw;
  }
  .gallery-slide {
    padding-inline: 4em;
  }
}
@media screen and (min-width: 1025px) {
  :root {
    --carousel-width: 80vw;
  }
  .gallery-slider-section .carousel-container {
    height: 100vh;
    position: relative;
  }
  .gallery-slider {
    //width: calc(5 * var(--carousel-width));
  }
  .gallery-slide {
    width: var(--carousel-width);
    padding: 0.5em;
  }
}
@media screen and (min-width: 1368px) {
  :root {
    --carousel-width: 60vw;
  }
  .gallery-slider-section .carousel-container {
    height: 80vh;
    position: relative;
  }
  .porotce-bio {
    overflow-y: unset;
  }
}
@media screen and (min-height: 1081px) {
  .gallery-slider-section .carousel-container {
    height: 1000px;
    position: relative;
  }
}
/*controls*/
.gallery-controls {
  position: absolute;
  max-height: 2em;
  z-index: 10;
}
.gallery-controls img {
  transition: transform 75ms ease-in-out;
}
.gallery-controls img:hover {
  transform: scale(1.25);
}
.gallery-controls > div > img {
  max-height: 50px;
  cursor: pointer;
  filter: invert(100%) sepia(38%) saturate(946%) hue-rotate(203deg)
    brightness(112%) contrast(101%);
}
.gallery-controls-left {
  left: 10%;
  top: 48%;
  bottom: 0;
  right: 50%;
  transform: translateX(0%);
  z-index: 10;
}
.gallery-controls-left > div {
  display: flex;
}

.gallery-controls-right {
  left: 50%;
  top: 48%;
  bottom: 0;
  right: 10%;
  transform: translateX(0%);
}
.gallery-controls-right > div {
  display: flex;
  flex-direction: row-reverse;
}

@media screen and (max-height: 480px) and (orientation: landscape) {
  .gallery-controls-left {
    transform: translateX(-5%);
  }
  .gallery-controls-right {
    transform: translateX(5%);
  }
}

@media screen and (min-width: 1025px) {
  .gallery-controls {
    /* display: unset; */
    position: absolute;
    max-height: 2em;
    z-index: 151;
  }
  .gallery-controls-left {
    transform: translateX(-20%);
  }
  .gallery-controls-right {
    transform: translateX(20%);
  }
}

@media screen and (min-width: 1368px) {
  .gallery-controls-left {
    transform: translateX(8%);
  }
  .gallery-controls-right {
    transform: translateX(-8%);
  }
}
/*********************************************/
/*********************************************/

.fullscreen-gallery {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  max-height: 93vh;
  color: white;
  display: grid;
  grid-template-rows: 9fr 1fr;
  overflow: hidden;
  z-index: 10;
}
@media screen and (max-height: 480px) and (orientation: landscape) {
  .fullscreen-gallery {
    max-height: 85vh;
  }
}
@media screen and (min-width: 1025px) {
  .fullscreen-gallery {
    max-height: 100vh;
  }
}
.close-gallery {
  filter: invert(100%) sepia(38%) saturate(946%) hue-rotate(203deg)
    brightness(112%) contrast(101%);
}
.fullsize-image {
  /* outline: 1px solid red; */
  height: 83vh;
  background-color: rgba(0, 0, 0, 0.7);
  grid-column-start: 1;
  grid-column-end: -1;
  grid-row-start: 1;
  grid-row-end: 2;
  overflow-y: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.full-img {
  padding: 0.5em;
  max-height: 85vh;
  max-width: 100vw;
  object-fit: contain;
}
@media screen and (max-height: 480px) and (orientation: landscape) {
  .fullsize-image {
    height: 75vh;
    width: unset;
  }
  .full-img {
    max-height: 75vh;
  }
}
@media screen and (min-width: 1025px) {
  .fullsize-image {
    height: 90vh;
    width: unset;
  }
  .full-img {
    max-height: 90vh;
  }
}

.preview-grid {
  height: 10vh;
  grid-row-start: 2;
  grid-row-end: 3;
  position: relative;
  background-color: rgba(0, 0, 0, 0.7);
  /* flex-direction: row; */
}
@media screen and (min-width: 1025px) {
  .preview-grid {
    height: 10vh;
  }
}

.preview-slider {
  position: absolute;
  display: flex;
  left: 45vw;
  transition: transform 500ms ease-in;
}
.preview-img-container {
  position: relative;
  isolation: isolate;
  z-index: 0;
}

.container-active {
  z-index: 2;
  background-color: unset !important;
}
.container-active > .preview-img {
  filter: saturate(100%);
  z-index: 3;
}
.preview-img {
  position: relative;
  padding: 0.5em;
  height: 10vh;
  width: calc(10vh * var(--golden));
  filter: saturate(0%);
  /* outline: 1px solid red; */
  z-index: -1;
  object-fit: cover;
}
.display-gallery {
  margin: 2em auto;
}
.stop-scrolling {
  height: 100%;
  overflow: hidden;
}
