.galerias_content {
  --height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 15px 15px;
  height: var(--height);
}

/*.galerias_content.markwater::before {
  content: "";
  position: absolute;
  bottom: 110px;
  right: 10px;
  background: url(../images/logo/logo_galleries.png);
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
}*/
.galerias_content.markwater::before {
    content: "";
    position: absolute;
    bottom: 85px;
    right: -25px;
    width: 300px;
    height: 60px;
    background-image: url(../images/logo/logo_galleries.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
    opacity: 0.8;
}

.galerias_content img,
.galerias_content video {
  object-fit: cover;
  height: var(--height);
  width: 100%;
}

.galerias_content .caption {
  position: absolute;
  bottom: 0;
  background: rgba(14, 22, 28, 0.7);
  border-top: 3px solid #CB913A;
  border-bottom: 3px solid #CB913A;
  border-radius: 15px;
  width: 100%;
  padding: 10px 15px;
  font-size: 16px;
  display: grid;
  grid-template-rows: 0fr;
  max-height: 90px;
  transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.galerias_content .caption>.description {
  min-height: 0;
}

.galerias_content:hover .caption {
  grid-template-rows: 1fr;
  max-height: 200px;
}

.lb-caption h6 {
  color: #fff !important;
}

.title-img {
  position: absolute;
  top: 10px;
  left: 25px;
  background: rgba(14, 22, 28, 0.7);
  border: 3px solid #b3b3b3;
  color: #b3b3b3;
  width: 130px;
  text-align: center;
  border-radius: 12px;
}

.galerias_content.effect-none .caption {
  max-height: initial !important;
}

.galerias_content .caption .title {
  color: #CB913A;
  font-size: 23px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.galerias_content .caption .description {
  color: #e1e1e1 !important;
  font-size: 18px;
}

.galerias_content .hover {
  position: absolute;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: var(--height);
  justify-content: center;
  align-items: center;
  gap: 10px;
  top: 0;
  left: 50%;
  opacity: 0;
  transform: translateX(-50%);
  transition: all 0.5s ease;
  border-radius: 12px;
  background: rgb(0 0 0 /0.5);
  color: #fff !important;
}

.galerias_content .hover label {
  color: #fff !important;
}

.galerias_content:hover .hover {
  opacity: 1;
}

.galerias_content .hover i {
  font-size: 30px;
}

.caption svg {
  position: absolute;
  right: 20px;
  top: 50%;
  color: #CB913A;
  transform: translateY(-50%);
}

.caption svg~.description {
  width: calc(100% - 48px);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0 15px;
  justify-content: center;
  align-items: center;
}

.controls {
  padding: 24px 20px;
  background: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.filter-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.filter-group:hover {
  border-color: #0A5072;
  transform: translateY(-1px);
}

.filter-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 128px;
  color: #000;
  padding: 14px 20px;
  border: none;
  background: white;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #0A5072;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.filter-btn:hover {
  background: #f8f9fa;
  color: #0A5072;
}

.filter-btn.active,
.filter-btn:focus {
  background: #0A5072;
  color: white;
  border: none !important;
}

.filter-btn.active::before {
  width: 100%;
}

.navigation-galleries {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navigation-galleries .nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 2px solid #e9ecef;
  background: white;
  color: #0e121d;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  max-width: 150px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.navigation-galleries .nav-btn:hover {
  border-color: #0e121d;
  background: #0e121d;
  color: white;
  transform: translateY(-2px);
}

.navigation-galleries .nav-btn:active {
  transform: translateY(0);
}

.navigation-galleries .nav-btn:disabled {
  opacity: 0;
}

.navigation-galleries .page-indicator {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  color: #0e121d;
  font-size: 16px;
  min-width: 80px;
  text-align: center;
}

@media (min-width: 576px) {
  .filter-group {
    gap: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
  }
}

@media (min-width: 768px) {
  .navigation-galleries .nav-btn:disabled {
    cursor: not-allowed;
    pointer-events: none;
    max-width: 0;
    padding: 0;
  }

  .filter-group {
    justify-content: initial;
  }
}

/* Edit Lightbox */

.lb-container::after {
  content: "";
  position: absolute;
  bottom: 0px;
  right: -25px;
  width: 300px;
  height: 60px;
  background-image: url(../images/logo/logo_galleries.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  opacity: 0.8;

  /*content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 100px;
  height: 100px;
  background: linear-gradient(rgb(143 143 143 / 30%), rgb(0 0 0 / 30%)), url(../images/logo.png);
  clip-path: polygon(69% 2%, 50% 17%, 28% 0, 23% 29%, 14% 43%, 25% 59%, 10% 95%, 88% 96%, 74% 58%, 86% 45%, 77% 29%);
  background-size: cover;
  background-position: center;*/
}
.description_ga {
  height: 40px !important;
}