/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Homepage Powered By Logos */
.powered-by-container {
    position: relative;
    width: 250px;
    height: 150px;
    opacity: 0; /* hidden until first image is ready */
    transition: opacity 0.5s ease-in-out;
}

@media only screen and (max-width:400px) {
    .powered-by-container {
        width: 150px;
    }
}

.powered-by-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    backface-visibility: hidden; /* ← optional but recommended for iOS */
    will-change: opacity;       
}

.powered-by-container img.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

/* Main Gallery Styling*/
/* Masonry grid */
.witchers-gallery-list {
  column-count: 3;
  column-gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.witchers-gallery-item {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;
}
.witchers-gallery-figure {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.witchers-gallery-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}
.witchers-gallery-link:hover .witchers-gallery-img,
.witchers-gallery-link:focus .witchers-gallery-img {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}
/* Overlay */
.witchers-gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  padding: 12px;
  box-sizing: border-box;
}
.witchers-gallery-caption {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.witchers-gallery-link:hover .witchers-gallery-overlay,
.witchers-gallery-link:focus .witchers-gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}
.fancybox__container {
    z-index: 99999 !important;
}
/* Responsive */
@media (max-width: 1023px) { .witchers-gallery-list { column-count: 2; } }
@media (max-width: 480px) { .witchers-gallery { --witchers-gap: 10px; } }


/* Carousel Gallery Styling */
.witchers-carousel-wrapper {
  margin: 20px 0;
}

.witchers-carousel {
  width: 100%;
}

/* Make all slides stretch to same height */
.witchers-carousel .swiper-wrapper {
  align-items: stretch;
  padding-bottom:50px;
}

.witchers-carousel .swiper-slide {
  display: flex;
}

/* The figure defines the aspect ratio */
.witchers-carousel-figure {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  width: 100%;
  aspect-ratio: 4 / 5;   /* tweak this ratio if you want them taller/wider */
}

/* Images fill the frame and crop nicely */
.witchers-carousel-img {
  width: 100%;
  height: 100% !important;       /* beat Elementor/global img rules */
  object-fit: cover !important;  /* force cover behavior */
  display: block;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s ease;
}

/* Hover effect */
.witchers-carousel-link:hover .witchers-carousel-img,
.witchers-carousel-link:focus .witchers-carousel-img {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22);
}

/* Overlay + caption */
.witchers-carousel-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.45) 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  padding: 12px;
  box-sizing: border-box;
}

.witchers-carousel-caption {
  color: #fff;
  font-size: 0.95rem;
  line-height: 1.25;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.witchers-carousel-link:hover .witchers-carousel-overlay,
.witchers-carousel-link:focus .witchers-carousel-overlay {
  opacity: 1;
  transform: translateY(0);
}

/* Swiper nav & pagination */
.witchers-carousel .swiper-button-prev,
.witchers-carousel .swiper-button-next {
  color: #fff;
}

.witchers-carousel .swiper-pagination-bullet {
  background: rgba(255,255,255,0.6);
}

.witchers-carousel .swiper-pagination-bullet-active {
  background: #fff;
}

/* Responsive tweaks */
@media (max-width: 767px) {
  .witchers-carousel-wrapper {
    margin: 15px 0;
  }
}

/* Blog Post Filters*/
.filter-dropdowns {
  display: flex;
  gap: 1rem; /* Add spacing between the dropdowns */
}

.filter-dropdowns select {
  padding: 0.5rem; /* Optional: Add padding for better appearance */
  font-size: 1rem; /* Optional: Adjust font size */
	margin-bottom:50px;
}

.pagination {
  width: 300px;
  justify-content: space-around;
}

#news-results {
	display:grid;
	grid-template-columns: 1fr 1fr;
	gap:20px;
}

@media only screen and (max-width:650px) {
	#news-results {
	grid-template-columns: 1fr;
	}
}


