/* ==========================================================================
   WH Image Text - Complete Styles
   ========================================================================== */

p {
  line-height: 1.4;
}  

/* ---------------------------------------------------------------------
   1. Main Container
   --------------------------------------------------------------------- */
.wh-image-text {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 80px 32px;
  box-sizing: border-box;
}

/* ---------------------------------------------------------------------
   2. Section Heading
   --------------------------------------------------------------------- */
.wh-image-text__heading {
  font-family: 'Action Cond Bold Web', sans-serif;
  font-size: 48px;
  font-weight: 700;
  font-style: normal;
  text-transform: none;
  text-align: left;
  color: #2A24E4;
  margin: 0 0 30px 0;
  letter-spacing: 1px;
  line-height: 1;
}

.wh-image-text__heading .field {
  display: inline;
}

/* ---------------------------------------------------------------------
   3. Main Content Container (Two Columns)
   --------------------------------------------------------------------- */
.wh-image-text__container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .wh-image-text__container {
    flex-direction: row;
    gap: 2rem;
  }
}

/* ---------------------------------------------------------------------
   4. Image Wrapper (Left Side)
   --------------------------------------------------------------------- */
.wh-image-text__image-wrapper {
  flex: 0 0 100%;
  width: 100%;
  background-color: #8b2323;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .wh-image-text__image-wrapper {
    flex: 0 0 45%;
  }
}

.wh-image-text__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wh-image-text__image-wrapper .field,
.wh-image-text__image-wrapper .field__item,
.wh-image-text__image-wrapper .field__items {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

.wh-image-text__image-wrapper .field__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder text when no image */
.wh-image-text__image-wrapper:empty::before {
  content: 'EXHIBITION IMAGE';
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* ---------------------------------------------------------------------
   5. Content Wrapper (Right Side)
   --------------------------------------------------------------------- */
.wh-image-text__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .wh-image-text__content {
    padding: 2rem;
    gap: 2rem;
  }
}

/* ---------------------------------------------------------------------
   6. Title
   --------------------------------------------------------------------- */
.wh-image-text__title {
  font-size: 24px;
  font-weight: 700;
  text-transform: none;
  color: #333333;
  margin: 0 0 0 0;
  line-height: 1.2;
  letter-spacing: 0;
}

.wh-image-text__title .field {
  display: inline;
}

@media (min-width: 768px) {
  .wh-image-text__title {
    font-size: 30px;
  }
}

@media (min-width: 1024px) {
  .wh-image-text__title {
    font-size: 35px;
  }
}

/* ---------------------------------------------------------------------
   6.5. Subtitle
   --------------------------------------------------------------------- */
.wh-image-text__subtitle {
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: #333333;
  margin: -1.5rem 0 0 0;
  line-height: 1.4;
}

.wh-image-text__subtitle .field {
  display: inline;
}

@media (min-width: 768px) {
  .wh-image-text__subtitle {
    font-size: 22px;
    margin-top: -2rem;
  }
}

@media (min-width: 1024px) {
  .wh-image-text__subtitle {
    font-size: 25px;
  }
}

/* ---------------------------------------------------------------------
   7. Body Text
   --------------------------------------------------------------------- */
.wh-image-text__body {
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  margin: 0;
}

.wh-image-text__body .field {
  display: inline;
}

.wh-image-text__body p {
  margin: 0 0 1rem 0;
}

.wh-image-text__body p:last-child {
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .wh-image-text__body {
    font-size: 17px;
  }
}

@media (min-width: 1024px) {
  .wh-image-text__body {
    font-size: 18px;
  }
}

/* ---------------------------------------------------------------------
   8. Button
   --------------------------------------------------------------------- */
.wh-image-text__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 3rem;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  border: 3px solid transparent;
  background-color: #2a24e4;
  color: #ffffff;
  border-color: #2a24e4;
  box-shadow: 0 6px 25px rgba(42, 36, 228, 0.5);
  cursor: pointer;
  transition: 
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.25s ease;
  align-self: flex-start;
  margin-top: auto;
}

.wh-image-text__button:hover,
.wh-image-text__button:focus {
  background-color: #3d36ff;
  border-color: #3d36ff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 35px rgba(42, 36, 228, 0.6);
  color: #ffffff;
  text-decoration: none;
}

.wh-image-text__button:focus {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .wh-image-text__button {
    padding: 1.4rem 3.5rem;
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .wh-image-text__button {
    padding: 1.5rem 4.5rem;
    font-size: 16px;
  }

  .wh-image-text__heading {
    font-size: 60px;
  }
}

/* ---------------------------------------------------------------------
   9. Hide empty field wrappers
   --------------------------------------------------------------------- */
.wh-image-text__heading:empty,
.wh-image-text__image-wrapper:empty,
.wh-image-text__title:empty,
.wh-image-text__subtitle:empty,
.wh-image-text__body:empty {
  display: none;
}

/* ---------------------------------------------------------------------
   10. Responsive adjustments
   --------------------------------------------------------------------- */
@media (max-width: 767px) {
  .wh-image-text {
    padding: 16px;
  }

  .wh-image-text__heading {
    margin-bottom: 20px;
  }

  .wh-image-text__content {
    padding: 1.25rem;
  }
}

