/* New CSS for Gallery */

/* Image hover effect */
.carousel-img-wrapper img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.carousel-img-wrapper:hover img {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Enhanced card styles */
.album {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.album:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Bootstrap card styling */
.card-body {
    padding: 1.25rem;
}

.card-text {
    font-size: 1.1rem;
    color: #333;
}

.btn-outline-danger {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: #fff;
}

/* Carousel Controls Styling */
.carousel-control-prev,
.carousel-control-next {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    padding: 10px;
}

/* Carousel control icons size */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    height: 30px;
    width: 30px;
}

/* Overall container styling */
.carousel-item {
    padding: 30px 0;
}

.carousel-inner {
    padding-bottom: 50px;
}

/* Breadcrumbs styling */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 20px;
}

/* New CSS for Gallery */

/* Ensure images are responsive and maintain aspect ratio */
.carousel-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px; /* Adjust this height according to your design */
    overflow: hidden;
}

.carousel-img-wrapper img {
    object-fit: cover; /* Ensures the images fill the space without distorting */
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}

.album:hover .carousel-img-wrapper img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Card styling */
.card.album {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s ease-in-out;
}

.card.album:hover {
    transform: translateY(-5px);
}

/* Additional padding and layout adjustments for the gallery */
.card-body {
    padding: 15px;
    text-align: center;
}

.card-text {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.btn-outline-danger {
    font-size: 0.875rem;
}

/* View Gallary CSS */

/* Gallery grid layout */
.gallery-item img {
    object-fit: cover;
    height: 250px; /* Limit image height */
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}


/* Custom lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* Center the content within the lightbox */
.lightbox-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    position: relative;
}

/* Image inside the lightbox */
.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* This ensures the image maintains aspect ratio */
    border-radius: 8px;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 2rem;
}

/* Controls */
.lightbox-control-prev,
.lightbox-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    color: white;
    font-size: 2rem;
}

.lightbox-control-prev {
    left: 10px;
}

.lightbox-control-next {
    right: 10px;
}

/* View Gallary CSS */