/**
* Theme Name: Aesthetica Child
* Description: This is a child theme of Aesthetica.
* Author: <a href="https://cmsmasters.net/">cmsmasters</a>
* Template: aesthetica
* Version: 1.1.0
* Tested up to: 6.6
* Requires PHP: 7.4
* License:
* License URI:
* Text Domain: aesthetica-child
* Copyright: cmsmasters 2025 / All Rights Reserved
*/

.acf-blocks-wrapper {
  display: flex;
  flex-direction: column;
}


.bg-image-block h1{
text-align:center !important;
}

.acf-block {
  padding: 20px;
	display: flex;
flex-wrap: wrap;
}

.acf-block h2 {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  display: block !important;
  word-break: break-word;
  max-width: 100%;
}


.acf-block-images {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Default style for 4+ images */
.acf-block-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.acf-block-images .image-wrapper {
  width: 285px;
  height: 285px;
  position: relative;
  overflow: hidden;
}

/* If only 2 images → 48% each */
.acf-block-images.image-count-2 .image-wrapper {
  /*width: 48%;
  height: auto;
  aspect-ratio: 1 / 1;*/
}

/* If only 1 image → full width */
.acf-block-images.image-count-1 .image-wrapper {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}


.container {
	max-width: 1280px;
	width:100%;
	margin: auto;
}

.lazy-image {
  filter: blur(10px);
  transition: filter 0.3s ease;
}
.lazy-image:not([src]) {
  background: #eee;
}

.image-wrapper {
  position: relative;
  width: 285px;
  height: 285px;
  display: inline-block;
  margin: 5px;
  overflow: hidden;
}

.placeholder {
  background: #eee;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: opacity 0.3s ease;
}

.acf-block-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 2;
}

.acf-pagination {
  margin-top: 40px;
  text-align: center;
}

.acf-pagination a, .acf-pagination span {
  display: inline-block;
  margin: 0 5px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  color: #333;
  text-decoration: none;
}

.acf-pagination .current {
  background:#000000;
  color: white;
  border-color: #0073aa;
}

.bg-image-block {
  position: relative;
 
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 402px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* ensures the overlay doesn't overflow */
}

.bg-image-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* black shade */
  z-index: 1;
}

.bg-image-block h1 {
  color: white;
  font-weight: 300;
  position: relative;
  z-index: 2; /* keep text above the overlay */
}

.mt-5 {
	margin-top: 28px;
}

@media (max-width: 768px) {
    .swiper-container {
      width: 100%;
    }

    .swiper-slide {
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .acf-block-image {
      width: 100%;
      height: auto;
    }

    .acf-block-images {
      overflow: hidden;
    }
  .acf-block h2 {
    font-size: 20px; /* smaller font for better wrapping */
    white-space: normal !important; /* allow line breaks */
    word-break: break-word; /* break long words if needed */
    overflow-wrap: break-word;
}
	.acf-block-images .image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    max-width: 325px;
}
  }

@media (min-width: 1025px) {
  .swiper-slide {
    width: auto !important;
  }
}


.urbanist{
  font-family: "Urbanist", sans-serif;
  font-weight: 200;
  font-style: normal;
}