.models-main-container {
  background-image: url('/assets/images/models_1_small.webp');
  background-position: right;
  background-size: cover;
  width: 100%;
  height: 70vh;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-clip: padding-box;
}

.models-main-container::before {
  z-index: 1;
  content: '';
  display: block;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 70vh;
  background: radial-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.9));
}

.models-text-container {
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.models-text-container h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-color);
  text-align: center;
  margin: 0;
}

.models-text-container #sub-header {
  color: var(--text-bright-color);
  text-align: center;
  font-size: 1.3rem;
  margin-top: 2rem;
  letter-spacing: 2px;
  word-spacing: 3px;
}

.model-images-container {
  display: flex;
  flex-direction: column;
}

.models-large-text-btn-container {
  background-color: var(--secondary-color);
  width: 100%;
  /* height: 91vh; */
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-clip: padding-box;
  mask-image: radial-gradient(circle, rgb(255, 255, 255) 99%, transparent 100%);
  margin-top: -1.8rem;
  z-index: 4;
}

.models-large-text-cointainer {
  display: flex;
  flex-direction: column;
}

.models-large-text-btn-container h2,
.models-large-text-btn-container h3,
.models-large-text-btn-container h4 {
  direction: rtl;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
  margin: 0;
  z-index: 3;
  padding: 0 2rem;
  margin-top: 3rem;
}

.models-large-text-btn-container .models-large-text-cointainer {
  z-index: 3;
  padding: 2rem;
  font-size: 1.1rem;
  color: var(--text-bright-color);
  letter-spacing: 1px;
  word-spacing: 4px;
  text-align: justify;
  width: 80%;
  direction: rtl;
  margin-bottom: 3rem;
}

.models-large-text-cointainer p {
  padding: 0 2rem;
}

.models-large-text-cointainer p a {
  color: var(--text-color);
}

.gallery-container {
  background-color: var(--primary-color);
  width: 100%;
  height: auto;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  background-clip: padding-box;
  margin-top: -1.8rem;
  z-index: 4;
}

.gallery-container h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-color);
  text-align: end;
  margin: 2rem 0 0 0;
  width: 100%;
  margin-right: 4rem;
}

.photos-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  margin: 0 auto;
}

.photos-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.large-gallery {
  aspect-ratio: 6/9;
}

.model-image {
  border-radius: 15px;
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 480px;
  aspect-ratio: 6/9;
}

.image-wrapper {
  width: 100%;
  margin: 0 auto;
  max-width: 320px;
  position: relative;
}

.image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 99.2%;
  border-radius: 15px;
  background: radial-gradient(
    circle,
    rgb(0 0 0 / 14%) 59%,
    rgb(0 0 0 / 68%) 100%
  );
  pointer-events: none;
  transition: background 4s ease;
}

.model-preview-container {
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
}

.model-preview-data {
  display: flex;
  flex-direction: column;
  width: 95%;
  align-items: flex-end;
}

.model-preview-header {
  margin: 0;
  text-decoration: underline;
  color: var(--text-bright-color);
  font-size: 1.4rem;
}

.model-preview-description {
  margin: 0;
  text-decoration: none;
  color: var(--text-bright-color);
  text-align: end;
}

/* --------------------SINGLE MODEL PAGE STYLES----------------- */
.model-container {
  background-position: center;
  background-size: cover;
  width: 100%;
  height: 70vh;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-clip: padding-box;
}

.model-container::before {
  z-index: 1;
  content: '';
  display: block;
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 70vh;
  background: radial-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
}

.intro {
  background-color: var(--primary-color);
  width: 100%;
  height: 24vh;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-clip: padding-box;
  margin-top: -2rem;
  z-index: 4;
}

.intro .header-like {
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--text-color);
  text-align: center;
  margin: 0;
  direction: rtl;
}

.action-pane {
  background-color: var(--secondary-color);
  width: 100%;
  height: 25vh;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-clip: padding-box;
  margin-top: -2rem;
  z-index: 4;
}

.round-image-text {
  width: 87%;
  margin: 0 auto;
  height: auto;
  border-radius: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-clip: padding-box;
  background-color: var(--primary-color);
}

.round-image-text h1 {
  font-size: 2.3rem;
  width: 80%;
  font-weight: 800;
  color: var(--accent-color);
  text-align: center;
  margin: 0;
  direction: rtl;
}

.round-image-text h2 {
  font-size: 1.7rem;
  width: 80%;
  font-weight: 600;
  color: var(--accent-color);
  text-align: center;
  margin: 0;
  direction: rtl;
}

.round-image-text .bright-text {
  width: 80%;
}

.round-image-text .model-upper-text {
  direction: rtl;
  padding: 2rem;
  font-size: 1.3rem;
  color: var(--text-bright-color);
  letter-spacing: 1px;
  word-spacing: 4px;
  text-align: justify;
  width: 80%;
  margin: 0;
}

.round-image-text .model-upper-text a {
  color: var(--text-color);
}

.bright-text {
  color: var(--text-bright-color);
  text-align: center;
  font-size: 1.1rem;
  margin-top: 2rem;
  letter-spacing: 2px;
  word-spacing: 3px;
}

.gallery-wraper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.7rem;
}

.model-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.model-gallery img {
  border-radius: 15px;
}

.extra-models-container {
  background-color: var(--secondary-color);
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
  margin-bottom: 3rem;
}

/* ------------------------MEDIA------------------------ */

@media (501px <= width <= 1000px) {
  .models-main-container {
    background-image: url('/assets/images/models_1_big.webp');
  }
  .models-large-text-btn-container {
    height: 113vh;
  }
  .models-large-text-btn-container .models-large-text-cointainer {
    width: 70%;
  }
  .photos-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .model-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-container h2 {
    margin-right: 7rem;
  }

  .model-preview-container:hover .image-wrapper::after {
    background: none;
  }

  .model-preview-data {
    width: 87%;
  }
}

@media (1001px <= width <= 4000px) {
  .models-main-container {
    background-image: url('/assets/images/models_1_big.webp');
  }
  .models-large-text-btn-container {
    height: 63vh;
  }
  .models-large-text-btn-container .models-large-text-cointainer {
    width: 70%;
    flex-direction: row;
  }

  .photos-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .gallery-container h2 {
    margin-right: 7rem;
  }

  .model-gallery {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .photos-container {
    width: 80%;
    margin: 0 auto;
  }

  .model-preview-container:hover .image-wrapper::after {
    background: none;
  }
}
