@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.my-gallery .gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
}

.my-gallery .gallerys {
  column-count: 4;
  column-gap: 20px;
}

.my-gallery .gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.4s ease;
  background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
}

.my-gallery .gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.4s ease;
}



.my-gallery .gallery-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.my-gallery .gallery-item:hover img {
  transform: scale(1.1);
}

.my-gallery .overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.my-gallery .gallery-item:hover .overlay {
  opacity: 1;
}


.my-gallery .overlay h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.1s;
}

.my-gallery .overlay p {
  font-size: 0.9rem;
  color: #fff;
  opacity: 0.8;
  text-align: center;
  padding: 0 20px;
  transform: translateY(20px);
  transition: transform 0.3s ease 0.2s;
}

.my-gallery .gallery-item:hover .overlay h3,
.my-gallery .gallery-item:hover .overlay p {
  transform: translateY(0);
}


/* Floating decorative elements */
.my-gallery .floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.my-gallery .floating-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.my-gallery .floating-dot:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.my-gallery .floating-dot:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.my-gallery .floating-dot:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

.my-gallery .floating-dot:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 1s;
}

.my-gallery .floating-dot:nth-child(5) {
    top: 50%;
    left: 90%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-20px);
        opacity: 0.3;
    }
}

/* Fullscreen Modal */
.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fullscreen-modal.active {
    opacity: 1;
    visibility: visible;
}

.fullscreen-modal img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.fullscreen-modal.active img {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .my-gallery .gallerys {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }

    .my-gallery .gallery-container {
        padding: 40px 15px;
    }

    .close-btn {
        font-size: 30px;
        width: 40px;
        height: 40px;
        top: 15px;
        right: 20px;
    }
}




@media (max-width: 480px) {
    .my-gallery .gallerys {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .header h1 {
        font-size: 2.5rem;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .my-gallery .gallery-item {
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
