/* ---------------- REVIEW SLIDER TESTIMONIAL SLIDER ----------------------*/
/* ## Masonry or Packery
--------------------------------------------- */
body.single-gallery .content-sidebar-wrap {
  max-width: 1600px;
}

.gallery-grid {
  transition: opacity 0.5s linear;
  list-style: none;
  margin: -7px;
  padding: 0;
  position: relative; /* for IE */
}

.grid.are-images-unloaded {
  opacity: 0;
}

.archive-pagination:empty {
  display: none;
}

.gallery-grid li {
  text-align: center;
}

.gallery-grid li > div {
  padding: 7px;
}

.gallery-grid a {
  text-decoration: none;
  display: block;
  overflow: hidden;
  position: relative;
  border-radius: 5px 25px;
}

.gallery-grid a::after,
.gallery-grid a::before {
  transition: all 0.5s linear;
}

.gallery-grid a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  box-shadow: inset 0px 0px 10px 0 rgba(6.9765957447, 39.5340425532, 102.3234042553, 0.1);
  z-index: 10;
  border-radius: 5px;
}

.gallery-grid a:hover,
.gallery-grid a:hover img {
  opacity: 1;
}

.gallery-grid a:hover img {
  transform: scale(1.05);
}

.gallery-grid img {
  width: 100%;
  display: block;
  border-radius: 5px;
}

.grid-sizer,
.grid-item {
  width: 100%;
  padding: 0;
}

@media (min-width: 375px) {
  .grid-sizer,
  .grid-item {
    width: 50%;
  }
}
@media (min-width: 600px) {
  .grid-sizer,
  .grid-item,
  .gallery-col-3 .grid-sizer,
  .gallery-col-3 .grid-item {
    width: 33.33%;
  }
  .gallery-col-4 .grid-sizer,
  .gallery-col-4 .grid-item {
    width: 25%;
  }
  .gallery-col-2 .grid-sizer,
  .gallery-col-2 .grid-item {
    width: 50%;
  }
}
@media (min-width: 1000px) {
  .gallery-col-4 .grid-sizer,
  .gallery-col-4 .grid-item,
  .grid-sizer,
  .grid-item {
    width: 25%;
  }
  .gallery-col-5 .grid-sizer,
  .gallery-col-5 .grid-item {
    width: 20%;
  }
}
@media (min-width: 1200px) {
  .gallery-col-6 .grid-sizer,
  .gallery-col-6 .grid-item {
    width: 16.6666666667%;
  }
}
@media (min-width: 1100px) {
  body.full-width-content .gallery-grid:not(.gallery-col-6),
  body.wide-content .gallery-grid:not(.gallery-col-6) {
    margin: -10px;
  }
  body.full-width-content .gallery-grid:not(.gallery-col-6) li > div,
  body.wide-content .gallery-grid:not(.gallery-col-6) li > div {
    padding: 10px;
  }
}
/*@media ( min-width: 1400px ) {

	body.full-width-content .gallery-grid:not(.gallery-col-6),
	body.wide-content .gallery-grid:not(.gallery-col-6) { 
		//margin: -20px;
	}

	body.full-width-content .gallery-grid:not(.gallery-col-6)  li > div,
	body.wide-content .gallery-grid:not(.gallery-col-6) li > div {
		//padding: 20px;
	}	

}
*/
.loader-ellips {
  font-size: 20px; /* change size here */
  position: relative;
  width: 4em;
  height: 1em;
  margin: 10px auto;
}

.loader-ellips__dot {
  display: block;
  width: 1em;
  height: 1em;
  border-radius: 0.5em;
  background: #02b7fd; /* change color here */
  position: absolute;
  animation-duration: 0.5s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
}

.loader-ellips__dot:nth-child(1),
.loader-ellips__dot:nth-child(2) {
  left: 0;
}

.loader-ellips__dot:nth-child(3) {
  left: 1.5em;
}

.loader-ellips__dot:nth-child(4) {
  left: 3em;
}

@keyframes reveal {
  from {
    transform: scale(0.001);
  }
  to {
    transform: scale(1);
  }
}
@keyframes slide {
  to {
    transform: translateX(1.5em);
  }
}
.loader-ellips__dot:nth-child(1) {
  animation-name: reveal;
}

.loader-ellips__dot:nth-child(2),
.loader-ellips__dot:nth-child(3) {
  animation-name: slide;
}

.loader-ellips__dot:nth-child(4) {
  animation-name: reveal;
  animation-direction: reverse;
}

.load-more-container {
  margin: 5% 0;
  text-align: center;
}

.page-load-status {
  display: none; /* hidden by default */
}

.swatch-gallery {
  margin: 20px auto;
}

.swatch-gallery-grid {
  display: flex;
  flex-direction: row;
  margin: -10px -5px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  text-align: center;
}

.swatch-gallery-grid-item,
.swatch-gallery-cols-3 .swatch-gallery-grid-item {
  flex-basis: 50%;
}

.swatch-gallery-grid-item img {
  display: block;
}

.swatch-gallery-grid-item > div {
  position: relative;
  padding: 10px 5px;
}

.swatch-gallery-img-container {
  display: block;
  position: relative;
  z-index: 5;
  overflow: hidden;
  border: 1px solid #fff;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding-top: 100%;
  border-radius: 10px;
}

.swatch-gallery-img-container::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  box-shadow: inset 0px 0px 12px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 500px) {
  .swatch-gallery-grid-item {
    flex-basis: 50%;
  }
}
@media (min-width: 700px) {
  .swatch-gallery-grid-item {
    flex-basis: 33.333%;
  }
}
@media (min-width: 1000px) {
  .swatch-gallery-cols-5 .swatch-gallery-grid-item {
    flex-basis: 20%;
  }
  .swatch-gallery-cols-4 .swatch-gallery-grid-item {
    flex-basis: 25%;
  }
  .swatch-gallery-cols-6 .swatch-gallery-grid-item {
    flex-basis: 16.6666666667%;
  }
  .swatch-gallery-cols-7 .swatch-gallery-grid-item {
    flex-basis: 14.2857142857%;
  }
  .swatch-gallery-cols-3 .swatch-gallery-grid-item {
    flex-basis: 33.333%;
  }
}
.swatch-gallery-grid-item p {
  margin: 5px 0 0 0;
  padding: 0 10px;
  font-size: 0.75em;
  line-height: 1.4;
}

.gallery-archive-container {
  position: relative;
  z-index: 10;
}

.gallery-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-item {
  position: relative;
  padding-top: 80%;
  border-radius: 3px 15px;
  overflow: clip;
}

@media (min-width: 1000px) {
  .gallery-item {
    border-radius: 5px 50px;
  }
  .gallery-items {
    grid-template-columns: repeat(4, 1fr); /* 4 equal-width columns */
    gap: 20px;
  }
  /* Target the first item and make it span two columns (50%) */
  .gallery-items > *:nth-child(1) {
    grid-column: span 2;
    padding-top: 50%;
  }
  /* Target the second item and make it span two columns (50%) */
  .gallery-items > *:nth-child(2) {
    grid-column: span 2;
    padding-top: 50%;
  }
}
@media (max-width: 999px) {
  .gallery-item {
    padding-top: 100%;
  }
  .gallery-items {
    grid-template-columns: repeat(6, 1fr);
  }
  /* Target the first item and make it span two columns (50%) */
  .gallery-items > *:nth-child(1) h2,
  .gallery-items > *:nth-child(2) h2 {
    font-size: clamp(1.1em, -0.875em + 4vw, 38px);
  }
  /* Target the first item and make it span 3 columns (50%) */
  .gallery-items > *:nth-child(1) {
    grid-column: span 3;
    padding-top: 80%;
  }
  /* Target the second item and make it span 3 columns (50%) */
  .gallery-items > *:nth-child(2) {
    grid-column: span 3;
    padding-top: 80%;
  }
  /* Optional: Ensure the remaining items go back to 3-across (33.3% width) 
     by making them span 2 columns (2/6 = 1/3) 
  */
  .gallery-items > *:nth-child(n+3) {
    grid-column: span 2;
  }
}
.gallery-item img {
  display: block;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 50% 0%;
  width: 100%;
  height: 100%;
}

.gallery-item h2 {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  color: rgb(6.3255319149, 35.8446808511, 92.7744680851);
  font-weight: 600;
  font-size: clamp(0.7em, -0.875em + 4vw, 22px);
  background: rgba(255, 255, 255, 0.85);
  margin: 0;
  padding: 8% 3%;
  line-height: 1.2;
  text-align: center;
  backface-visibility: hidden;
  text-wrap: balance;
  transition: all 0.5s ease;
  border: 1px solid #fff;
  border-right: 0;
  border-left: 0;
  font-family: "Figtree", sans-serif;
}

.gallery-item a:hover h2 {
  color: #fff;
}

.gallery-item a:hover h2 {
  background: rgba(6.9765957447, 39.5340425532, 102.3234042553, 0.85);
}

@media (hover: hover) {
  .gallery-item img {
    will-change: transform;
    transition: all 0.5s linear;
  }
  .gallery-item a:hover img {
    transform: scale(1.1);
  }
}
@media (min-width: 1100px) {
  .gallery-item h2 {
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    left: unset;
    font-weight: 500;
    padding: 8% 5%;
    text-align: right !important;
    border: 0;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    margin-left: 10px;
  }
  /* Target the first item and make it span two columns (50%) */
  .gallery-items > *:nth-child(1) h2,
  .gallery-items > *:nth-child(2) h2 {
    font-size: clamp(0.8em, -0.875em + 4vw, 38px);
    border-top-left-radius: 80px;
    border-bottom-left-radius: 80px;
  }
}
body.post-type-archive-gallery .gallery-archive-container {
  margin: 8vw auto 12vw;
  padding: 0 5%;
  max-width: calc(1450px + 10%);
}

body.single-gallery .entry-footer {
  padding-bottom: 5vw;
}

body.single-gallery .section-decoration {
  display: none;
}

body.single-gallery .entry-content p + .gallery-grid {
  padding-top: 3%;
}

.gallery-intro-text {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  text-wrap: balance !important;
  text-align: center;
  font-family: "Figtree", sans-serif;
  font-size: 1.3em;
  line-height: 1.7;
}

.gallery-dropdown-container {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 2% 0 0 0;
}

/* Style the select element */
select[name=gallery-dropdown] {
  /* Basic styling */
  padding: 12px 40px 12px 15px; /* Space for custom arrow */
  font-size: 16px;
  font-family: "Figtree", sans-serif; /* Modern font stack */
  color: rgb(6.3255319149, 35.8446808511, 92.7744680851);
  background-color: #fff; /* White background */
  border: 1px solid #fff;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(6.9765957447, 39.5340425532, 102.3234042553, 0.1); /* Subtle shadow */
  width: 100%;
  max-width: 250px; /* Matches previous styling */
  cursor: pointer;
  appearance: none; /* Remove default browser styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  text-align: center;
}

/* Custom dropdown arrow */
select[name=gallery-dropdown] {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center; /* Position arrow */
  background-size: 12px; /* Arrow size */
}

/* Hover and focus states */
select[name=gallery-dropdown]:hover,
select[name=gallery-dropdown]:focus {
  outline: none;
  border-color: #02b7fd; /* WordPress blue for hover */
  box-shadow: 0 0 0 3px rgba(6.9765957447, 39.5340425532, 102.3234042553, 0.2); /* Focus ring */
}

/* Style the options (limited control, but some properties work) */
select[name=gallery-dropdown] option {
  background: #fff;
  color: #333;
  padding: 10px; /* Limited effect, browser-dependent */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-dropdown-container {
    padding: 10px;
  }
  select[name=gallery-dropdown] {
    max-width: 100%; /* Full width on smaller screens */
  }
}
img.gallery-odd-item {
  aspect-ratio: 3/4;
  object-fit: cover;
}

img.gallery-even-item {
  aspect-ratio: 2/1.5;
  object-fit: cover;
}

img.gallery-item-rectangle {
  aspect-ratio: 4/3;
  object-fit: cover;
}

img.gallery-item-square {
  aspect-ratio: 1/1;
  object-fit: cover;
}
