.header__welcome {
  width: clamp(10rem, 50%, 50rem);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 1rem;
  max-width: 1200px;
  margin: 1rem auto 0 auto;
  padding: clamp(1rem, 2dvw, 2rem);
}

.gallery__item {
  overflow: hidden;
  border-radius: 1rem;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery__item--large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

.experiences {
  width: 100%;
  height: auto;
  padding: 0 clamp(1rem, 2dvw, 4rem);
}

.experience-item {
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--color-blue);
  /* padding: 2rem; */
  padding: clamp(1rem, 2dvw, 2rem) clamp(1rem, 2dvw, 4rem);
  container-type: inline-size;
}

.experience-item h2 {
  color: var(--color-blue-dark);
  font-size: clamp(1.5rem, 4dvw, 2rem);
  font-weight: 800;
}

.experience__text-title {
  font-size: 1rem;
  font-weight: 900;
}

.experience-item p {
  font-size: clamp(0.9rem, 2cqw, 1rem);
  line-height: 2em;
}

p.experience__comp-name {
  margin: 0.5em 0;
  font-size: clamp(1.2rem, 3.5cqw, 1.5rem);
}

.grid-two-experience {
  width: 100%;
  height: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.item-grid-two {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.item-grid-two img {
  height: 30rem;
  width: 100%;
  object-fit: contain;
  margin-block-end: 1rem;
}

.experience-image {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.experience-image img {
  height: clamp(20rem, 25dvw, 50rem);
  width: auto;
  margin-block-end: 1rem;
}

/* Responsive layout for tablets */
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
    padding: 0.5rem;
    ;
  }

  .gallery__item--large,
  .gallery__item--small,
  .gallery__item--tall,
  .gallery__item--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .grid-two-experience {
    width: 100%;
    height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin: 2rem 0;
  }

  .item-grid-two {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .item-grid-two img {
    height: fit-content;
    width: 100%;
    object-fit: contain;
    margin-block-end: 1rem;
  }

}

/* Responsive layout for mobile phones */
@media (max-width: 550px) {
  body {
    padding: 1rem;
  }

  .gallery {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 300px;
    padding: 0;
  }

  .gallery__item--large,
  .gallery__item--small,
  .gallery__item--tall,
  .gallery__item--wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}