/* ========================
   Only Image Section
   Full Width Image with Button Overlay
   ======================== */

.only-image-section {
  width: 100%;
  position: relative;
}
.only-image-container-width {
  padding-bottom: var(--space-20);
}
.only-image-section .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.only-image-wrap {
  width: 100%;
  height: 12.5rem;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  display: flex;
}

.only-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center center;
}

/* Button Overlay */
.button-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

.button-wrap a,
.button-wrap button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Full Width Variant */
.only-image-section.only-image-full-width {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.only-image-section.only-image-full-width .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

.only-image-section.only-image-full-width .only-image-wrap {
  border-radius: 0;
  min-height: auto;
  height: auto;
}

.only-image-section.only-image-full-width .only-image-wrap .only-image {
  height: auto;
  object-fit: contain;
}

/* ========================
   RESPONSIVE DESIGN
   ======================== */

/* X-Small devices (portrait phones, less than 576px) - Default/Base Styles */
/* Base styles defined above */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
  .only-image-wrap {
    height: 17.5rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .only-image-wrap {
    height: 23.75rem;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .only-image-wrap {
    height: 30rem;
  }

  .only-image-section.only-image-full-width .only-image-wrap {
    height: 32.5rem;
    min-height: auto;
  }
  .only-image-section.only-image-full-width .only-image-wrap .only-image {
    height: 100%;
    object-fit: cover;
  }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .only-image-container-width {
    padding-bottom: var(--space-22);
  }
  .only-image-wrap {
    height: 34.375rem;
  }

  .only-image-section.only-image-full-width .only-image-wrap {
    height: 36.25rem;
  }
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
  .only-image-container-width {
    padding-bottom: var(--space-23);
  }
  .only-image-wrap {
    height: 37.5rem;
  }

  .only-image-section.only-image-full-width .only-image-wrap {
    height: 39.375rem;
  }
}

/* XXX-Large devices (1600px and up) */
@media (min-width: 1600px) {
  /* Inherits from 1400px and up */
}
