.blog-gallery-hero {
  position: relative;
  margin-top: 45px;
  height: 260px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-gallery-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  opacity: 1;
}
.blog-gallery-hero img.hero-pending {
  opacity: 0;
}
.blog-gallery-hero img.hero-ready {
  opacity: 1;
}

.blog-gallery-hero .hero-text {
  position: absolute;
  z-index: 2;
  color: #fff;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: none;
  padding: 0 20px;
  display: none;
}

.blog-gallery-page .photography-gallery-section .section-header h2 {
  font-family: "Cormorant Garamond", serif;
  color: #3f3f3f;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: none;
}

.gallery-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-gray);
  font-family: "Montserrat", sans-serif;
}

.blog-gallery-pager {
  margin-top: 0;
  padding: 10px 0 69px;
  background: #fafafa;
  border: 0;
  margin-bottom: 0;
}

.blog-gallery-pager .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pager-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #8f8f8f;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 12px;
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
}

.pager-link .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 40.4px;
  line-height: 1;
  font-weight: 100;
  transform: translateY(-10%) scaleX(1.3) scaleY(0.7);
}

#pagerPrev .arrow {
  transform-origin: right center;
}

#pagerNext .arrow {
  transform-origin: left center;
}

.pager-link:hover .arrow {
  animation-duration: 0.55s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: 1;
}

#pagerPrev:hover .arrow {
  animation-name: pagerArrowInOutLeft;
}

#pagerNext:hover .arrow {
  animation-name: pagerArrowInOutRight;
}

@keyframes pagerArrowInOutLeft {
  0% { transform: translateY(-10%) scaleX(1.3) scaleY(0.7) translateX(0); }
  45% { transform: translateY(-10%) scaleX(1.3) scaleY(0.7) translateX(5px); }
  100% { transform: translateY(-10%) scaleX(1.3) scaleY(0.7) translateX(0); }
}

@keyframes pagerArrowInOutRight {
  0% { transform: translateY(-10%) scaleX(1.3) scaleY(0.7) translateX(0); }
  45% { transform: translateY(-10%) scaleX(1.3) scaleY(0.7) translateX(-5px); }
  100% { transform: translateY(-10%) scaleX(1.3) scaleY(0.7) translateX(0); }
}

.pager-link.disabled {
  opacity: 0.25;
  pointer-events: none;
}

.blog-gallery-page .photography-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.blog-gallery-page .photography-item img.loaded {
  opacity: 1;
}

/* All blogs: Fixed two-column layout - no re-balancing glitch */
.blog-gallery-page.blog-all-left-right .photography-grid {
  display: flex !important;
  gap: 5px;
  line-height: 0;
}

.blog-gallery-page.blog-all-left-right .gallery-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.blog-gallery-page.blog-all-left-right .photography-item {
  margin-bottom: 0;
  display: block;
  background: #f0ece6;
  overflow: hidden;
}

.blog-gallery-page.blog-all-left-right .photography-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 580px) {
  .blog-gallery-page.blog-all-left-right .photography-grid {
    flex-direction: column;
    gap: 10px !important;
  }
  .blog-gallery-page.blog-all-left-right .gallery-column {
    flex: none !important;
    width: 100% !important;
  }
  .blog-gallery-page.blog-all-left-right .photography-item img {
    width: 100%;
    height: auto;
    min-height: auto;
  }
  .blog-gallery-page .photography-gallery-section .container {
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .blog-gallery-hero {
    height: 110px;
    margin-top: 65px;
  }
  .blog-gallery-hero .hero-text {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  .blog-gallery-pager {
    padding: 20px 0 34px;
  }
  .blog-gallery-pager .container {
    justify-content: space-between;
    padding: 0 36px;
    gap: 0;
  }
  .pager-link {
    font-size: 9px;
    letter-spacing: 1.2px;
    gap: 6px;
    margin: 0;
  }
  .pager-link span:not(.arrow) {
    display: inline;
    font-size: 9.38px;
    font-weight: 700;
    transform: translateY(5%);
  }
  .pager-link .arrow {
    font-size: 25.2px;
    font-weight: 700;
    transform: scaleX(1.7);
  }
  #pagerPrev .arrow {
    transform-origin: right center;
  }
  #pagerNext .arrow {
    transform-origin: left center;
  }
  .blog-seo-content {
    text-align: center !important;
  }
}

/* 4K display size */
.blog-gallery-page.blog-all-left-right.is-4k-display .photography-gallery-section .container {
  width: min(1512px, calc(100vw - 80px));
  max-width: 1512px !important;
}

/* 1920x1080 laptop/FHD size */
.blog-gallery-page.blog-all-left-right.is-fhd-display .photography-gallery-section .container {
  width: min(1008px, calc(100vw - 80px));
  max-width: 1008px !important;
}

/* Fallback if JS class is not applied */
@media (min-width: 1600px) and (max-width: 1920px) {
  .blog-gallery-page.blog-all-left-right:not(.is-4k-display):not(.is-fhd-display) .photography-gallery-section .container {
    width: min(1008px, calc(100vw - 80px));
    max-width: 1008px !important;
  }
}
