/* === Layout Container === */
.custom-layout-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px;
  background-color: #0b0b0d;
  color: #fff;
  font-family: 'Oswald', sans-serif;
}

/* === Image Section === */
.custom-image-section {
  position: relative;
  flex: 0 0 68%;
  padding: 1rem;
}

.custom-image-section img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}

/* Text Overlay === */
.custom-description-overlay {
  position: absolute;
  bottom: 10%;
  left: 5%;
  width: 23%;
  padding: 1rem 1rem;
  text-align: left;
  opacity: 0;
  animation: fadeIn 3s ease-in-out forwards;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  color: #d5c99a;
  font-size: 1.5rem;
  line-height: 1.6;
  font-weight: 300;
}

/* === Text Section === */
.custom-text-section {
  flex: 0 0 32%;
  padding: 1rem;
  text-align: left;
}

.custom-text-section h1 {
  font-weight: 100;
  font-size: 4.0rem;
  margin-bottom: 1rem;
  color: #ffcc00;
}

.custom-text-section h2 {
  font-weight: 200;
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: #ffcc00;
}

.custom-text-section hr {
  width: 125px;
  margin: 20px 0;
  border: 3px solid #ffcc00;
}

/* === Quote === */
.quote-text {
  font-size: clamp(1rem, 2vw, 1.6rem);
  font-weight: 300;
  line-height: 1.4em;
  color: #fff;
  letter-spacing: 0.03em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* === Responsive Layout: Medium Screens (<1150px) === */
@media (max-width: 1150px) {
  .custom-layout-container {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }

  .custom-image-section,
  .custom-text-section {
    flex: 0 0 100%;
  }

  .custom-description-overlay {
    position: static;
    width: 90%;
    margin: 1rem auto 1rem auto;
    padding: 1rem 1rem;
    background-color: #0b0b0d;
    opacity: 1;
    animation: none;
    text-align: center;
  }

  .quote-text {
    font-size: 2.2rem;
    line-height: 1.6em;
  }
}

/* === Responsive Layout: Small Screens (<600px) === */
@media (max-width: 600px) {
  .custom-description-overlay {
    width: 95%;
    padding: 1rem 1rem;
    margin: 1rem auto;
    background-color: #0b0b0d;
    text-align: center;
  }

  .quote-text {
    font-size: 1.6rem;
    line-height: 1.6em;
    font-weight: 300;
  }
}

/* === Animations === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === Paragraph Override=== */
p {
  margin-bottom: 1.5em !important;
  line-height: 1.6;
}

/* === Leadership Overlay Position Override === */
.custom-image-section.leadership-overlay .custom-description-overlay {
  bottom: 5% !important;
  left: auto !important;
  right: 5% !important;
  width: 45% !important;
  text-align: left !important;
}

/* === Leadership Overlay Responsive Override === */
@media (max-width: 1150px) {
  .custom-image-section.leadership-overlay .custom-description-overlay {
    position: static !important;
    width: 100% !important;
    margin: 2rem auto 1rem auto !important;
    padding: 2rem 1.5rem !important;
    background-color: rgba(17, 17, 17, 0.85) !important;
    opacity: 1 !important;
    animation: none !important;
    text-align: left !important;
  }
}

@media (max-width: 600px) {
  .custom-image-section.leadership-overlay .custom-description-overlay {
    width: 100% !important;
    padding: 2rem 1rem !important;
    margin: 2rem auto !important;
    background-color: rgba(17, 17, 17, 0.9) !important;
    text-align: left !important;
  }
}

/* === Medallion Fade Override === */
img.medallion-image {
    mask-image: none !important;
}
