.v-agile {
  width: 100%;
  &__main {
    width: 100%;
    @include boxshadow-md($primary);
    border-radius: 6px;
  }
  &__slide {
    width: 550px;
    height: 450px;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    img {
      width: 100%;
      min-height: 300px;
      height: 450px;
      display: block;
      object-fit: cover;
      border-radius: 6px;
    }
  }
}

.v-agile {
  &__thumbnails {
    width: 100%;
    // margin: 0 -5px;
    margin-top: 1rem;
    // display: flex;
    // flex-direction: column;
    &--slide {
      margin-bottom: 1.5rem;
      min-height: 60px;
      padding: 0 5px;
      img {
        @include boxshadow-md($primary);
        -webkit-tap-highlight-color: rgba($primary, 0.4);
        margin-left: -0.6rem;
        display: block;
        height: 60px;
        width: 100%;
        object-fit: cover;
        cursor: pointer;
        transition: all 0.3s ease-in;
        border-radius: 4px;
        &:hover {
          opacity: 0.8;
        }
      }
    }
  }
}

.v-proyecto-box {
  margin-top: 2rem;
  display: flex;
  flex-direction: row;
  &__content {
    padding: 0rem 3rem;
    line-height: 1.8;
    margin-bottom: 10%;
  }
  &__title {
    color: var(--primary);
  }
}

.v-gallery {
  width: 100%;
  position: relative;
  &__grid {
    width: 100%;
    min-height: 40vh;
    display: grid;
    grid-template-columns: (7 * 100% / 12) repeat(2, 1fr);
    grid-template-rows: repeat(2, (60vh/2));
    grid-template-areas:
      'uno dos tres'
      'uno cuatro cinco';
  }
  &__absolute {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 2;
  }
  &__contain {
    display: flex;
    justify-content: flex-end;
  }
  &__btn {
    padding: 1rem 1.5rem;
    background-color: $second-color;
    // @include gradient-gen($primary-text);
    @include boxshadow-md($primary-text-dark);
    color: $primary-text;
    text-transform: uppercase;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
    align-items: center;
    &:hover {
      background-color: darken($second-color, 10);
    }
    span {
      font-size: 1.5rem;
      margin-right: 0.5rem;
    }
  }
  &--1 {
    grid-area: uno;
  }
  &__img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid $bg-color-primary;
    border-right: 1px solid $bg-color-primary;
    &::before {
      transition: all 0.35s ease;
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      content: '';
      background-color: rgba(black, 0.2);
      z-index: 1;
      pointer-events: none;
    }
    &:hover {
      &::before {
        background-color: rgba(black, 0);
      }
    }
    img {
      width: 100%;
      object-fit: cover;
      height: 100%;
      cursor: pointer;
      &:hover {
        transform: scale(1.1);
      }
    }
  }
}

@media (max-width: 1200px) {
  .v-gallery {
    &__grid {
      grid-template-rows: repeat(2, (50vh/2));
    }
  }
}
@media (max-width: 960px) {
  .v-gallery {
    &__grid {
      grid-template-columns: (7 * 100% / 12) 1fr;
      grid-template-areas:
        'uno dos'
        'uno tres';
    }
    &--1 {
      grid-area: uno;
    }
  }
}

@media (max-width: 768px) {
  .v-gallery {
    &__grid {
      grid-template-rows: repeat(2, (40vh/2));
    }
  }
}
