/**
 * Two Column Layout CSS for Easy Language Content - Text Left, Images Right
 */

/* Mobile First: Single column layout */
.boell-easy-language-grid {
  display: block;
  width: 100%;
}

.image-placeholder {
  display: none; /* Hide placeholders on mobile */
}

/* Desktop: Two column grid layout (768px and up) */
@media (min-width: 768px) {
  .boell-easy-language-grid {
    display: grid;
    grid-template-columns: 60% 40%; /* 60% text, 40% images */
    column-gap: 2rem; /* Horizontal gap only */
    row-gap: 0; /* No vertical gap */
    align-items: start;
  }

  .image-placeholder {
    display: block;
    width: 100%;
    height: 0;
    visibility: hidden; /* Invisible but maintains grid structure */
  }

  /* Remove top padding/margin for paragraphs in two-column layout */
  .boell-easy-language-grid p {
    margin-top: 0;
    padding-top: 0;
  }

  /* Image styling */
  .boell-easy-language-grid img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .boell-easy-language-grid figure {
    margin: 0;
    width: 100%;
  }

  .boell-easy-language-grid figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
  }
}

/* Portrait tablet adjustments */
@media (min-width: 768px) and (orientation: portrait) {
  .boell-easy-language-grid {
    column-gap: 1.5rem;
  }
}

/* Landscape tablet and desktop */
@media (min-width: 1024px) and (orientation: landscape) {
  .boell-easy-language-grid {
    column-gap: 3rem;
  }
}