:root {
  --primary-color: #6c63ff;
  --secondary-color: #ff6584;
  --dark-color: #2a2a72;
  --light-color: #f8f9fa;
  --plainclr: #fff;
}

.gallery-sec-4 {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.gallery-sec-4 .gallery-header {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gallery-sec-4 .gallery-header .gallery-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.gallery-sec-4 .gallery-header .gallery-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  animation: titleUnderline 2s ease forwards 1s;
}
.gallery-sec-4 .gallery-header .gallery-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #555;
}
.gallery-sec-4 .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 0 15px;
}
.gallery-sec-4 .gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(50px);
  opacity: 0;
  animation: itemAppear 0.6s ease forwards;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery-sec-4 .gallery-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  z-index: 10;
}
.gallery-sec-4 .gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-sec-4 .gallery-item:hover .item-content {
  transform: translateY(0);
}
.gallery-sec-4 .gallery-item:hover .item-overlay {
  opacity: 1;
}
.gallery-sec-4 .gallery-item:hover .view-btn {
  opacity: 1;
  transform: translateY(0);
}
.gallery-sec-4 .gallery-item img {
  width: 100%;
  height: 250px;
  -o-object-fit: cover;
     object-fit: cover;
  transition: all 0.5s ease;
}
.gallery-sec-4 .gallery-item .item-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--plainclr);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.gallery-sec-4 .gallery-item .item-content .item-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.gallery-sec-4 .gallery-item .item-content .item-category {
  font-size: 0.9rem;
  opacity: 0.8;
  display: inline-block;
  padding: 3px 10px;
  background: var(--primary-color);
  border-radius: 15px;
}
.gallery-sec-4 .gallery-item .item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(42, 42, 114, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-sec-4 .gallery-item .view-btn {
  background: var(--plainclr);
  color: var(--dark-color);
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 700;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
  cursor: pointer;
}
.gallery-sec-4 .gallery-item:nth-child(1) {
  animation-delay: 0.1s;
}
.gallery-sec-4 .gallery-item:nth-child(2) {
  animation-delay: 0.2s;
}
.gallery-sec-4 .gallery-item:nth-child(3) {
  animation-delay: 0.3s;
}
.gallery-sec-4 .gallery-item:nth-child(4) {
  animation-delay: 0.4s;
}
.gallery-sec-4 .gallery-item:nth-child(5) {
  animation-delay: 0.5s;
}
.gallery-sec-4 .gallery-item:nth-child(6) {
  animation-delay: 0.6s;
}
.gallery-sec-4 .gallery-item:nth-child(7) {
  animation-delay: 0.7s;
}
.gallery-sec-4 .gallery-item:nth-child(8) {
  animation-delay: 0.8s;
}
.gallery-sec-4 .gallery-item:nth-child(9) {
  animation-delay: 0.9s;
}
@keyframes itemAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .gallery-sec-4 .gallery-title {
    font-size: 2.5rem;
  }
  .gallery-sec-4 .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
  }
}
@media (max-width: 576px) {
  .gallery-sec-4 .gallery-title {
    font-size: 2rem;
  }
  .gallery-sec-4 .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}
.gallery-sec-4 .modal-content {
  border-radius: 15px;
  overflow: hidden;
  border: none;
}
.gallery-sec-4 .modal-header {
  background: var(--dark-color);
  color: var(--plainclr);
  border-bottom: 2px solid var(--primary-color);
}
.gallery-sec-4 .modal-body {
  padding: 0;
}
.gallery-sec-4 .modal-body img {
  width: 100%;
  height: 400px !important;
  -o-object-fit: cover;
     object-fit: cover;
  -o-object-position: center;
     object-position: center;
}
.gallery-sec-4 .btn-close {
  filter: invert(1);
}

@keyframes titleUnderline {
  to {
    transform: scaleX(1);
  }
}/*# sourceMappingURL=galleryDesign4.css.map */