.cyo-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #fff;
}

/* Page Title */
.cyo-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #2a2a2a;
}

/* Section Blocks */
.cyo-section {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Header Images */
.cyo-header-img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem auto;
  border-radius: 8px;
}

/* Body Text */
.cyo-section p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Notes */
.cyo-note {
  font-size: 0.95rem;
  font-style: italic;
  text-align: center;
  color: #555;
  margin-top: 1rem;
}

/* Image Grid (5-across frame options) */
.cyo-image-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.cyo-image-grid img {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.cyo-image-grid figure {
  text-align: center;
  font-size: 0.9rem;
}

/* Two-Image Side-by-Side Layout (general) */
.cyo-split-img {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.cyo-split-img img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Responsive Typography Adjustments */
@media (max-width: 768px) {
  .cyo-title {
    font-size: 2rem;
  }

  .cyo-section {
    padding: 1.5rem 1rem;
  }

  .cyo-image-grid,
  .cyo-split-img {
    flex-direction: column;
    align-items: center;
  }

  .cyo-image-grid img,
  .cyo-split-img img {
    max-width: 100%;
  }
}

/* === Fixed Height Image Grids === */
.cyo-fixed-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cyo-fixed-grid img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Group 1: 325px height */
.cyo-img-325 img { height: 325px; }

/* Group 2: 315px height */
.cyo-img-315 img { height: 385px; }

/* Group 3: 375px height */
.cyo-img-375 img { height: 425px; }

/* Layout: 3 across */
.cyo-fixed-grid > img {
  flex: 0 1 calc(33.333% - 1rem);
}

/* Mid-size: Use aspect ratio */
@media (max-width: 1024px) {
  .cyo-fixed-grid > img {
    flex: 0 1 calc(50% - 1rem);
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

/* Mobile: Stack */
@media (max-width: 600px) {
  .cyo-fixed-grid > img {
    flex: 1 1 100%;
    aspect-ratio: auto;
  }
}

/* === Sizes Section Image Pair (native dimensions & scaling) === */
.cyo-sizes-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
  margin-top: 1.5rem;
}

.cyo-size-img {
  height: 309px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: block;
}

.img-700 {
  width: 700px;
  max-width: 100%;
}

.img-289 {
  width: 289px;
  max-width: 100%;
}

/* On small screens, stack them */
@media (max-width: 768px) {
  .cyo-sizes-flex {
    flex-direction: column;
    align-items: center;
  }

  .cyo-size-img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
