.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 20px
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2)
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease
}

.gallery-item:hover img {
    transform: scale(1.05)
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease
}

.gallery-item:hover .gallery-overlay {
    opacity: 1
}

.gallery-caption {
    color: white
}

.gallery-caption h5 {
    margin-bottom: 5px;
    font-weight: 600
}

.gallery-caption p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9
}

.gallery-category {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2
}

.page-header {
    background:linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url('{{url_for(' static',filename=' uploads/pexels-pixabay-159775.jpg')}}') center center no-repeat;
    background-size: cover
}

.memory-slideshow-container {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #000
}

.memory-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden
}

.memory-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transform: scale(1.1) rotate(5deg)
}

.memory-slide.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1) rotate(0deg)
}

.memory-slide.fade-in {
    animation: fadeInSlide 1s ease-in-out
}

.memory-slide.slide-from-left {
    animation: slideFromLeft 1s ease-in-out
}

.memory-slide.slide-from-right {
    animation: slideFromRight 1s ease-in-out
}

.memory-slide.slide-from-top {
    animation: slideFromTop 1s ease-in-out
}

.memory-slide.slide-from-bottom {
    animation: slideFromBottom 1s ease-in-out
}

.memory-slide.zoom-in {
    animation: zoomInSlide 1s ease-in-out
}

.memory-slide.flip-in {
    animation: flipInSlide 1s ease-in-out
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: scale(1.1) rotate(5deg)
    }

    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg)
    }
}

@keyframes slideFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100%) scale(1.1)
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1)
    }
}

@keyframes slideFromRight {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(1.1)
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1)
    }
}

@keyframes slideFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100%) scale(1.1)
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@keyframes slideFromBottom {
    0% {
        opacity: 0;
        transform: translateY(100%) scale(1.1)
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@keyframes zoomInSlide {
    0% {
        opacity: 0;
        transform: scale(0.5)
    }

    100% {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes flipInSlide {
    0% {
        opacity: 0;
        transform: rotateY(90deg) scale(1.1)
    }

    100% {
        opacity: 1;
        transform: rotateY(0deg) scale(1)
    }
}

.memory-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px;
    color: white;
    z-index: 3
}

.memory-caption h5 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 600
}

.memory-caption p {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.9
}

.memory-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10
}

.memory-nav:hover {
    background: rgba(0, 0, 0, 0.7)
}

.memory-prev {
    left: 20px
}

.memory-next {
    right: 20px
}

.memory-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10
}

.memory-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease
}

.memory-indicator.active {
    background: white
}

.memory-overlay-mobile {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    border-radius: 10px
}

.carousel-control-mobile {
    left: 15px;
    width: 40px;
    height: 40px
}

.carousel-control-mobile-next {
    right: 15px;
    width: 40px;
    height: 40px
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75)
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.5)
}

@media (max-width:768px) {
    .memory-slideshow-container {
        height: 60vh
    }

    .memory-caption h5 {
        font-size: 1.2rem
    }

    .memory-caption p {
        font-size: 0.9rem
    }

    .memory-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem
    }

    .memory-prev {
        left: 10px
    }

    .memory-next {
        right: 10px
    }
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.5
    }
}

.fade-in-out {
    animation: fadeInOut 5s ease-in-out infinite
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 10px
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2)
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease
}

.gallery-item:hover img {
    transform: scale(1.05)
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease
}

.gallery-item:hover .gallery-overlay {
    opacity: 1
}

.gallery-caption {
    color: white
}

.gallery-caption h5 {
    margin-bottom: 5px;
    font-weight: 600
}

.gallery-caption p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9
}

.memory-slideshow-container {
    height: 100vh;
    overflow: hidden;
    background: #f8f9fa
}

.memory-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out
}

.memory-slide.active {
    opacity: 1
}

.memory-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.memory-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 30px;
    color: white
}

.memory-caption h5 {
    font-size: 1.5rem;
    margin-bottom: 10px
}

.memory-caption p {
    font-size: 1rem;
    margin-bottom: 15px;
    opacity: 0.9
}

.memory-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10
}

.memory-nav:hover {
    background: rgba(0, 0, 0, 0.7)
}

.memory-prev {
    left: 20px
}

.memory-next {
    right: 20px
}

.memory-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10
}

.memory-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease
}

.memory-indicator.active {
    background: white
}

.memory-overlay-mobile {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
    border-radius: 10px
}

#gallerySlideshowCarousel,
#gallerySlideshowCarousel .carousel-inner,
#gallerySlideshowCarousel .carousel-item {
    height: 100vh
}

#gallerySlideshowCarousel .carousel-item img {
    height: 100vh;
    object-fit: cover
}

.carousel-control-mobile {
    left: 15px;
    width: 40px;
    height: 40px
}

.carousel-control-mobile-next {
    right: 15px;
    width: 40px;
    height: 40px
}