/* Shared Split Layout Styles (Platforms + Tools) */

/* Container */
.split-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 60px auto;
  gap: 40px;
  background: var(--sqsp-light-tan, #f7f5f2);
  max-width: 1200px;
  padding: 0 20px;
}

/* Alternating Layout */
.split-section.row {
  flex-direction: row; /* text left, image right */
}
.split-section.row-reverse {
  flex-direction: row-reverse; /* image left, text right */
}

/* Text Block */
.split-section .text-block {
  flex: 1;
  padding: 20px 40px;
  font-family: 'Roboto', sans-serif;
  color: #333333;
}

.split-section .text-block h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a1a1a;
}

/* Tagline */
.text-block .tagline {
  font-style: italic;
  font-size: 0.95rem;
  color: #219a83; /* EI Green */
  margin: -4px 0 12px;
}

.split-section .text-block p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #333333;
}

/* Image Block */
.split-section .image-block {
  flex: 1;
  padding: 20px;
  position: relative; /* for icon placement */
  overflow: hidden;
}

.split-section .image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}

/* Expand Icon */
.expand-icon {
  position: absolute;
  top: 10px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #000;
  background: #fff;
  padding: 6px;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}
.expand-icon:hover {
  transform: scale(1.2);
}

/* Icon placement */
.split-section.row .expand-icon {
  right: 10px;
  left: auto;
}
.split-section.row-reverse .expand-icon {
  left: 10px;
  right: auto;
}

/* Lightbox Overlay */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease-in-out;
}
.lightbox-caption {
  margin-top: 12px;
  color: #fff;
  font-family: 'Roboto', sans-serif;
}
.lightbox-caption h4 {
  margin: 0;
  font-size: 1.25rem;
}
.lightbox-caption p {
  margin: 4px 0 0;
  font-size: 1rem;
}

/* Lightbox Close Button */
.lightbox-close {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 1.5rem;
  color: #fff;
  background: rgba(0,0,0,0.6);
  padding: 6px 10px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.lightbox-close:hover {
  background: rgba(0,0,0,0.8);
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* Responsive Collapse */
@media (max-width: 768px) {
  .split-section {
    flex-direction: column !important;
    text-align: left;
    gap: 20px;
    padding: 20px;
  }
  .split-section .image-block,
  .split-section .text-block {
    padding: 10px;
    margin: 0;
  }
  .split-section .text-block h3 {
    font-size: 1.25rem;
  }
  .split-section .text-block p {
    font-size: 0.95rem;
  }
}

