.single-post-content h3 {
  font-size: 1.8em;
  line-height: 1.3;
  margin-top: 50px;
  border-bottom: 2px solid #007bff;
  padding-bottom: 10px;
  color: #1a1a1a;
}
.single-post-content p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
}
.single-post-content a {
  color: #007bff;
  text-decoration: none;
}
.single-post-content a:hover {
  text-decoration: underline;
}
.single-post-content .wp-block-image img,
.single-post-content .wp-block-gallery .wp-block-image img,
.single-post-content .wp-block-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
  transition: transform .3s ease, box-shadow .3s ease;
}
.single-post-content .wp-block-image:hover img,
.single-post-content .wp-block-gallery .wp-block-image:hover img {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .15);
}
.single-post-content .wp-block-image.alignwide,
.single-post-content .wp-block-image.alignfull {
  margin-top: 2.5em;
  margin-bottom: 2.5em;
}
.single-post-content .wp-block-columns.layout-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 1.5em;
  margin-bottom: 2.5em;
}
.single-post-content .wp-block-columns.layout-grid-2 .wp-block-column {
    width: auto;
}
.single-post-content .wp-block-columns.layout-grid-2 .wp-block-image {
    height: 100%;
    margin: 0;
}
.single-post-content .wp-block-gallery {
  display: grid;
  gap: 16px;
  margin-top: 1.5em;
  margin-bottom: 2.5em;
}
.single-post-content .wp-block-gallery.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}
.single-post-content .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image {
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: 4 / 3; 
    height: auto !important;
    width: 100% !important;
    flex-grow: 1 !important;
}
.single-post-content .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
}
.swiper-gallery-container {
  position: relative;
  margin: 2.5em 0;
}
.swiper {
  width: 100%;
  height: 500px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
}
.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f0f0f0;
}
.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swiper-button-next,
.swiper-button-prev {
  color: #fff !important;
}
.swiper-pagination-bullet-active {
  background-color: #fff !important;
}
.swiper-button-next:after,
.swiper-button-prev:after {
  text-shadow: 0 0 8px rgba(0, 0, 0, .6);
}
.swiper-lazy-preloader {
    --swiper-preloader-color: #ffffff;
}
@media (max-width: 781px) {
  .single-post-content .wp-block-gallery.columns-3,
  .single-post-content .wp-block-columns.layout-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .single-post-content .wp-block-columns.layout-grid-2,
  .single-post-content .wp-block-gallery {
    gap: 12px;
  }
  .swiper {
    height: 400px;
  }
}
@media (max-width: 480px) {
  .single-post-content .wp-block-gallery.columns-3,
  .single-post-content .wp-block-columns.layout-grid-2 {
    grid-template-columns: 1fr;
  }
  .swiper {
    height: 300px;
  }
}
