/* Image Trio Info Block Component Styles */

/* Using TailwindCSS classes primarily, custom CSS only when necessary */

.image-trio-info-block {
  width: 100%
}

/* Optional Full-width Title */

.image-trio-title-wrapper {
  margin-bottom: 2rem;
  width: 100%
}

.image-trio-title {
  margin-bottom: 1rem;
  text-align: left;
  font-size: var(--font-h2);
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
  font-weight: var(--font-weight-bold);
  color: var(--color-text)
}

/* Main Flex Container */

.image-trio-container {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between
}

/* Image Flex Section - 49% width */

.image-trio-flex-section {
  width: 49%;
  height: 600px
  /* Fixed height to ensure proper aspect ratio calculation */
}

/* Images Flex Container */

.image-trio-images-flex {
  display: flex;
  height: 100%;
  flex-direction: row;
  gap: 30px
}

/* Left Column - 30% width for images 1 and 2 */

.image-trio-left-column {
  display: flex;
  height: 100%;
  width: 30%;
  flex-direction: column
}

/* Right Column - Remaining space for image 3 */

.image-trio-right-column {
  height: 100%;
  width: 66%
}

/* Image containers */

.image-trio-div1 {
  overflow: hidden;
  border-radius: 20px
}

.image-trio-div2 {
  overflow: hidden;
  border-radius: 20px
}

.image-trio-div3 {
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  height: 100%
}

.image-trio-div3 .image-trio-image img {
  aspect-ratio: 1 / 1;
  height: auto
}

/* Content Section - 48% width */

.image-trio-content-section {
  display: flex;
  width: 48%;
  flex-direction: column;
  justify-content: center;
  gap: 20px
}

/* Images styling */

.image-trio-image {
  height: 100%;
  width: 100%
}

.image-trio-image img {
  aspect-ratio: 16/8;
  height: 201px;
  width: 100%;
  border-radius: 20px;
  -o-object-fit: cover;
     object-fit: cover
}

/* Content styling */

.image-trio-content-title {
  font-size: var(--font-h2);
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
  font-weight: var(--font-weight-bold);
  color: var(--color-text)
}

.image-trio-content-description {
  font-size: var(--font-h4);
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
  font-weight: var(--font-weight-regular);
  line-height: 150%;
  color: var(--color-text)
}

/* Bullet list styling */

.image-trio-bullets {
  list-style-type: none
}

.image-trio-bullets > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(20px * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(20px * var(--tw-space-y-reverse))
}

.image-trio-bullets {
  padding-left: 0px
}

.image-trio-bullet-item {
  display: flex;
  align-items: flex-start
}

.image-trio-bullet-icon {
  margin-top: 0.65rem;
  margin-right: 0.75rem;
  height: 0.5rem;
  width: 0.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background-color: var(--color-primary-100)
}

.image-trio-bullet-text {
  font-size: var(--font-h4);
  line-height: var(--line-height);
  letter-spacing: var(--letter-spacing);
  font-weight: var(--font-weight-regular);
  line-height: 150%;
  color: var(--color-text)
}

/* Optional separator */

.image-trio-separator {
  margin-top: 2rem;
  height: 1px;
  width: 100%;
  background-color: var(--color-gray-300)
}

/* Responsive adjustments */

@media (max-width: 1024px) {
  .image-trio-container {
    flex-direction: column;
    gap: 30px
  }

  .image-trio-flex-section {
    width: 100%
  }

  .image-trio-content-section {
    width: 100%
  }

  .image-trio-images-flex {
    flex-direction: column;
    gap: 20px
  }

  .image-trio-left-column {
    width: 100%;
    flex-direction: row;
    gap: 20px
  }

  .image-trio-right-column {
    width: 100%
  }
}

@media (max-width: 768px) {
  .image-trio-container {
    gap: 20px
  }

  .image-trio-content-section {
    gap: 15px
  }

  .image-trio-bullets > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(15px * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(15px * var(--tw-space-y-reverse))
  }
}
