.gallery a.gallery-item {
  position: relative;
  cursor: pointer;
}
.gallery-item.is-hidden {
  display: none !important;
}
.gallery.is-expanded .gallery-item.is-hidden {
  display: block !important;
  animation: galleryItemFadeIn 0.35s cubic-bezier(0.2, 0, 0, 1) forwards;
}
@keyframes galleryItemFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.gallery-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(22, 33, 24, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  transition: background 0.3s ease;
  z-index: 2;
  border-radius: inherit;
}
.gallery-more-card:hover .gallery-more-overlay {
  background: rgba(22, 33, 24, 0.82);
}
.gallery.is-expanded .gallery-more-overlay {
  display: none !important;
}
.gallery-more-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  pointer-events: none;
}
.gallery-more-badge svg {
  color: var(--gold, #a68c65);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.gallery-more-count {
  font-family: Manrope, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #fff;
  line-height: 1.2;
}
.gallery-more-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #f4e5c9;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.gallery-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.gallery-collapse-btn {
  padding: 12px 28px !important;
  font-size: 13px !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 14, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}
.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 24px;
  box-sizing: border-box;
  pointer-events: none;
}
.lightbox-dialog > * {
  pointer-events: auto;
}
.lightbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 16px;
  padding-bottom: 12px;
}
.lightbox-info {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.lightbox-counter {
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold, #a68c65);
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(166, 140, 101, 0.35);
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.lightbox-caption {
  font-family: Manrope, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #f4e5c9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lightbox-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.lightbox-close-btn:hover {
  background: var(--gold, #a68c65);
  border-color: var(--gold, #a68c65);
  transform: rotate(90deg);
}
.lightbox-viewport {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  min-height: 0;
  margin: 10px 0;
  gap: 16px;
}
.lightbox-arrow {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  z-index: 5;
}
.lightbox-arrow:hover {
  background: var(--gold, #a68c65);
  border-color: var(--gold, #a68c65);
  transform: scale(1.08);
}
.lightbox-arrow:active {
  transform: scale(0.95);
}
.lightbox-media-wrap {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 10px;
}
.lightbox-image {
  max-width: 100%;
  max-height: calc(86vh - 120px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  transition: opacity 0.22s ease, transform 0.22s ease;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 8px;
}
.lightbox-hint {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .lightbox-dialog {
    padding: 12px 14px;
  }
  .lightbox-viewport {
    gap: 0;
  }
  .lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: rgba(15, 25, 18, 0.7);
  }
  .lightbox-arrow:hover {
    transform: translateY(-50%) scale(1.06);
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
  .lightbox-image {
    max-height: calc(80vh - 100px);
  }
  .lightbox-caption {
    max-width: 180px;
    font-size: 13px;
  }
  .lightbox-counter {
    font-size: 12px;
    padding: 4px 10px;
  }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(23, 51, 45, 0.85) 0%, rgba(23, 51, 45, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
  opacity: 0.92;
  transition: opacity 0.3s ease, background 0.3s ease;
}
.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
  background: linear-gradient(to top, rgba(23, 51, 45, 0.95) 0%, rgba(23, 51, 45, 0.4) 60%, transparent 100%);
}
.gallery-zoom-icon {
  font-size: 22px;
  margin-bottom: 6px;
  color: #d9c3a0;
  display: inline-block;
  line-height: 1;
}
.gallery-caption-preview {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

