.container {
  width: 100%;
  /* min-height: 100vh; */
  max-width: 1200px;
  margin: 1rem auto;
  overflow: hidden;
}

.slider__container {
  display: grid;
  grid-template-columns: 25px 1fr 25px;
  align-items: center;
  gap: 1em;
  margin: auto;
  width: 100%;
}

.slider__body {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  opacity: 0;
  pointer-events: none; /*Hacer que el mouse no reconozca al elemento*/
  display: grid;
  /* background-color: #F2F2F2; */
  grid-template-columns: 1fr max-content;
  align-items: center;
  transition: opacity 1.5s;
  aspect-ratio: 16 / 9;
}

/* padding-top: 36.23%;
  background-color: beige; */

.slider__body--show {
  opacity: 1;
  pointer-events: unset; /*Hacer que un elemento pueda ser seleccionado*/
}

.slider__arrow {
  display: flex;
  cursor: pointer;
  font-size: 3.2vw;
  transition: color 0.2s ease;
  -webkit-transition: color 0.2s ease;
  -moz-transition: color 0.2s ease;
  -ms-transition: color 0.2s ease;
  -o-transition: color 0.2s ease;
}

.slider__arrow:first-of-type {
  justify-content: flex-start;
}

.slider__arrow:last-of-type {
  justify-content: flex-end;
}

.slider__arrow:hover {
  color: var(--white);
}

.slider__body-img {
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 1400px) {
  .slider__arrow {
    font-size: 44.8px;
  }
}

@media screen and (max-width: 768px) {
  .slider__body {
    grid-template-columns: 1fr;
    grid-template-rows: max-content 1fr;
    gap: 1em;
  }
  .sliderpicture {
    grid-row: 1 / 2;
  }
  .slider__img {
    width: 210px;
    height: 210px;
  }
  .slider__container {
    grid-template-columns: 20px 1fr 20px;
  }
  .slider__arrow {
    font-size: 4.5vw;
  }
}

@media screen and (max-width: 480px) {
  .slider__arrow {
    width: 100%;
  }
  .slider__container {
    grid-template-columns: 10px 1fr 10px;
  }
  .slider__arrow {
    font-size: 5vw;
  }
}
