header {
  background-color: white;

  #welcome {
    background-color: var(--primary);
    color: white;
    padding: 0.625rem;
    text-align: center;
  }

  .header__flag {
    display: grid;
  }
}

#hero {
  min-height: 35rem;
  height: calc(100vh - 190px);
  max-height: 1000px;
  background-color: white;
  color: black;
  position: relative;
  display: grid;
  align-items: center;

  @media screen and (max-width: 1250px) {
    height: unset;
    padding-bottom: 8rem;
  }

  .border {
    position: absolute;
    bottom: 0;
    width: 100%;

    svg {
      filter: drop-shadow(0px -4px 4px rgba(0, 0, 0, 0.3));
      position: relative;
      width: 100%;

      @media screen and (min-width: 1980px) {
        transform: scaleX(1.5);
      }

      @media screen and (max-width: 800px) {
        bottom: -1rem;
      }

      @media screen and (max-width: 600px) {
        bottom: -2rem;
      }
    }
  }

  .container {
    padding-bottom: 12rem;
    display: grid;
    grid-template-columns: 27rem auto;
    justify-content: space-between;
    gap: 4rem;

    @media screen and (max-width: 1250px) {
      text-align: center;
      justify-content: center;
      grid-template-columns: auto;

      h2 {
        display: grid;
        justify-content: center;

        .decoration {
          max-width: 30rem;
        }
      }
    }

    overflow: hidden;

    .left {
      display: grid;
      gap: 2rem;

      h2 {
        margin-top: 0;
        margin-block: 0;
        font-weight: 700;
        font-size: 3.5rem;
        line-height: 4.5rem;

        img {
          width: 100%;
        }

        .pink {
          color: var(--primary);
        }
      }

      .subscribe {
        display: grid;
        gap: 2.75rem;
        justify-self: flex-start;
        grid-auto-flow: column;
        align-items: center;
        justify-content: flex-start;

        @media screen and (max-width: 1320px) {
          justify-self: center;
          grid-row: 3;
        }

        &:hover, .arrow:hover {
          .arrow {
            background-color: var(--primary);
            color: white;
          }
        }

        padding: 0.5rem 0.75rem;
        text-decoration: none;
        color: black;
        padding-left: 1rem;
        border: 2px solid black;
        border-radius: 1rem;

        font-weight: 800;
        font-size: 1.5rem;

        .arrow {
          display: grid;
          align-items: center;
          justify-content: center;
          aspect-ratio: 1;
          border-radius: 0.75rem;
          width: 3.5rem;
          font-size: 2rem;
          color: var(--primary);
          outline: 2px solid var(--primary);
          background-color: white;
          padding: 0;

          transition: 1s;
        }
      }

      @media screen and (max-width: 1400px) {
        h2 {
          line-height: 4rem;
        }
      }

      h4 {
        font-size: 1.5rem;
        font-weight: 300;
        line-height: 2.5rem;
        margin-block: 0;

        .decorated img {
          bottom: -0.5rem;
        }
      }
    }

    .right {
      display: grid;
      overflow: hidden;
      border-radius: 1.5rem;

      @media screen and (max-width: 1320px) {
        justify-items: center;
        margin-top: 2rem;
      }

      .photos {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        height: 100%;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          border-radius: 2rem;
          box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.3);

          &:nth-child(2) {
            animation-delay: .25s;
          }

          &:nth-child(3) {
            animation-delay: .5s;
          }
        }

        
        @media screen and (max-width: 840px) {
          grid-template-columns: 1fr;
          justify-content: center;
          
          img {
            display: none;
            width: 40vw;
            
            &.active {
              display: block;
            }
          }
        }
      }

      .photos__counter {
        display: none;
        grid-auto-flow: column;
        justify-content: center;
        gap: .5rem;

        .photos__index {
          margin-top: 2rem;
          width: .5rem;
          height: .5rem;
          border-radius: 100vmax;
          background-color: var(--gray);
          border: 2px solid var(--gray);
          
          &.active {
            background-color: var(--secondary);
            border-color: var(--secondary);
          }
        }

        @media screen and (max-width: 840px) {
          display: grid;
        }
      }
    }
  }
}
