img {
  object-fit: cover;
}

.single-image.full-bleed  {
	max-width: unset !important;
}

.single-image.width-large {
  max-width: 90rem;
}

.single-image.width-medium {
  /*   max-width: 1360px; */
  padding: 0 2.5rem;
}

.single-image.width-medium img,
.single-image.width-large img {
  width: 100%;
  height: 100%;
}

.single-image.height-x-large,
.single-image.height-x-large img {
  max-height: 40rem;
  aspect-ratio: 1440/640;
}

.single-image.height-large,
.single-image.height-large img {
  max-height: 35rem;
}

.single-image.height-medium,
.single-image.height-medium img {
  max-height: 27.5rem;
}

.single-image.height-small,
.single-image.height-small img {
  max-height: 23.75rem;
}

.rak-images-widget.layout-layout2,
.rak-images-widget.layout-layout3 {
  display: flex;
  justify-content: center;
}

.two-images-row.layout-2 {
  display: flex;
  max-width: 85rem;
  height: 27.5rem;
  align-items: flex-start;
  gap: 2rem;
  /* flex-shrink: 0; */
}

.image-half {
	width: 100%;
	height: 27.5rem;
	overflow: hidden;
	object-fit: cover;
/* 	aspect-ratio: 664 / 440; */
}

.image-half img {
/*   aspect-ratio: 664 / 440; */
/*   height: 27.5rem !important; */
	width: 100%;
	height:100%;
}

.two-images-row.layout-3 {
  padding: 0 2.5rem;
  display: flex;
  width: 100%;
  height: 22.5rem;
  align-items: flex-start;
  gap: 2rem;
}

.image-one-third {
  width: 31.7%;
  height: 100%;
  flex-shrink: 0;
	overflow: hidden;
	object-fit: cover;
}

.image-two-thirds {
  flex: 1 0 0;
  align-self: stretch;
  height: 100%;
	overflow: hidden;
	object-fit: cover;
}

.image-two-thirds img {
  width: -webkit-fill-available;
}

.image-one-third img,
.image-two-thirds img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.three-images-row.layout-4 {
  display: flex;
  max-width: 85rem;
  /*     height: 380px; */
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
}

.image-third img {
  height: 22.5rem;
  width: 26.875rem;
  object-fit: cover;
  aspect-ratio: 84 / 75;
  /*     height: 360px;
        width: 430px;
    object-fit: cover;
        aspect-ratio: 84 / 75; */
}

.first-two img {
  /* display: flex; */
  /* gap: 32px; */
  height: 22.5rem;
}

.first-two {
  display: flex;
  gap: 2rem;
  flex-direction: row;
}

.last-third img {
  height: 22.5rem;
}

.single-image-text {
	display: flex;
	max-width: 90rem;
	height: 27.5rem;
	padding: var(--Spacing-6XL, 5rem) var(--Spacing-5XL, 4rem);
	align-items: flex-end;
	gap: 0.5rem;
}

.image-text{
	color: var(--Color-Content-Inverse, #FFFFFF);
}

@media (min-width: 768px) and (max-width: 991px){
	.single-image,
	.single-image img {
		width: 100%;
		height: auto !important;
		max-height: 23.75rem !important;
	}
	.two-images-row.layout-3{
		height: 16.25rem !important;
	}
}

@media (max-width: 990px) {
  img {
/*     object-fit: fill; */
	object-fit: cover;
  }

  .single-image.width-large {
    max-width: 100%;
    /* Full width on mobile */
  }

  .single-image.width-medium {
    max-width: 100%;
    padding: 0 1.25rem;
  }

  .single-image,
  .single-image img {
    width: 100%;
    height: 12.5rem;
  }

  /* 
      .single-image.height-x-large,
      .single-image.height-x-large img {
        height: 18.6875rem !important;
        object-fit: cover;
      }
    
    
      .single-image.height-large,
      .single-image.height-large img {
        max-height: 17.5rem;
      }
    
      .single-image.height-medium,
      .single-image.height-medium img {
        max-height: 13.75rem;
      }
    
      .single-image.height-small,
      .single-image.height-small img {
    
        height: 10.875rem !important;
    
      } */

  .three-images-row.layout-4 {
    height: auto;
    gap: 1rem;
    flex-direction: column;
  }

  .last-third img {
    height: 160px !important;
    width: 100%;
  }

  .first-two img {
    height: 100%;
  }

  .last-third {
    min-width: 100%;
	  height:10rem;
  }

  .image-third img {
    height: 100%;
  }

  .first-two {
    gap: 1rem;
	  height: 10rem;
  }

  .rak-images-widget.layout-layout2,
  .rak-images-widget.layout-layout3 {
    flex-direction: column;
    align-items: center;
  }

  .two-images-row.layout-2 {
    flex-direction: row;
    height: auto;
    max-width: 100%;
    gap: 1rem;
    padding: 0 1.25rem;
	  width:100%;
  }

  .image-half {
	  width: 100%;
	  height: 10rem;
	  overflow: hidden;
	  object-fit: cover;
  }

  .image-half img {
    width: 100%;
    height: 100%;
/*     aspect-ratio: auto; */
    /* Let the image resize naturally */
  }

  .two-images-row.layout-3 {
    flex-direction: row;
	  height: 10rem;
    gap: 1rem;
    padding: 0 1.25rem;
  }

  .image-one-third,
  .image-two-thirds {
    width: 49%;
  }

  .image-one-third img,
  .image-two-thirds img {
    width: 100%;
    min-height: 10rem;
  }
	
	.single-image-text {
		max-height: 18.6875rem;
		padding: 2rem 1.25rem;

	}
}
