/* Cutout Banner Grid */
.cutout-banner-grid {
  display: grid;
  gap: 20px;
}

@media (max-width: 1024px) {
  .cutout-banner-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .cutout-banner-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Banner Container */
.cutout-image-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
  border-radius: 0;
}

/* Banner Image Wrapper */
.cutout-banner-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.cutout-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* Hover Effects */
.cutout-image-banner.banner-hover-zoom:hover .cutout-banner-image img {
  transform: scale(1.1);
}

.cutout-image-banner.banner-hover-zoom-reverse .cutout-banner-image img {
  transform: scale(1.1);
}

.cutout-image-banner.banner-hover-zoom-reverse:hover .cutout-banner-image img {
  transform: scale(1);
}

/* SVG Overlay */
.cutout-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
  text-transform: uppercase;
}

.cutout-svg-overlay text {
  bottom: 0 !important;
}

.cutout-image-banner:hover .cutout-svg-overlay {
  opacity: 1;
}

/* Banner Link */
.cutout-banner-link {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
}

.small-title {
  position: absolute;
  bottom: 0.3rem;
  right: 0.3rem;
  margin: 0;
  color: #ddd;
}

/* Responsive Text Sizing */
@media (max-width: 1024px) {
  .cutout-svg-overlay text {
    font-size: 160px !important;
  }
}

@media (max-width: 768px) {
  .cutout-svg-overlay text {
    font-size: 120px !important;
  }
}

@media (max-width: 480px) {
  .cutout-svg-overlay text {
    font-size: 70px !important;
  }
}

.wp-child-theme-woodmart-child .wd-text-block:not(.inline-element).text-center {
  margin-inline: 1rem;
  margin-block: 2rem;
}

.wp-child-theme-woodmart-child #cs-home {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: initial;
  grid-auto-rows: 30vw;
  /* defines height unit */
  gap: 0rem;
}

.wp-child-theme-woodmart-child .elementor-element {
  height: 100%;
}

.wp-child-theme-woodmart-child .elementor-element div {
  height: 100%;
  object-fit: cover;
}

.wp-child-theme-woodmart-child .elementor-element img {
  height: 100%;
  object-fit: cover;
}

.wp-child-theme-woodmart-child .elementor-element .wd-carousel-item img {
  object-fit: contain;
}


/* Pattern for the first few items */
.elementor-element:nth-child(4n+1) {
  grid-column: 1;
  grid-row: span 2;
  object-fit: cover;
}

.elementor-element:nth-child(4n+2) {
  grid-column: 2;
  grid-row: span 1;
}

.elementor-element:nth-child(4n+3) {
  grid-column: 2;
  grid-row: span 2;
  object-fit: cover;
}

.elementor-element:nth-child(4n+4) {
  grid-column: 1;
  grid-row: span 1;
}

@media (max-width: 1024px) {
  .wp-child-theme-woodmart-child #cs-home {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 1rem;
  }

  .wp-child-theme-woodmart-child .elementor-element {
    grid-column: 1;
    grid-row: span 1;
  }
}
