/* Gallery Styles */

/* General Gallery Styles */
.gallery-container,
.gallery-detail-container {
    padding-top: 30px;
    padding-bottom: 50px;
}

.gallery-content {
    margin-bottom: 30px;
}

.gallery-introduction {
    margin-bottom: 30px;
}

/* Gallery Card Styles */
.gallery-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.gallery-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.gallery-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.gallery-link:hover {
    text-decoration: none;
    color: inherit;
}

.gallery-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background-color: #f8f9fa;
}

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

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 10px;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-count {
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 14px;
}

.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
}

.placeholder-content {
    text-align: center;
    color: #6c757d;
}

.placeholder-content i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.gallery-details {
    padding: 15px;
}

.gallery-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.gallery-description {
    color: #6c757d;
    font-size: 14px;
}

/* Gallery Detail Page */
.gallery-breadcrumbs {
    margin-bottom: 20px;
}

.gallery-header {
    margin-bottom: 30px;
}

.gallery-header h1 {
    margin-bottom: 15px;
}

.gallery-images {
    margin-bottom: 30px;
}

.gallery-item {
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.gallery-image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.gallery-image-link img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

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

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.overlay-content {
    color: #fff;
    font-size: 24px;
}

.gallery-caption {
    padding: 10px;
    background-color: #f8f9fa;
    font-size: 14px;
    color: #6c757d;
    border-top: 1px solid #e9ecef;
}

/* Lightbox Styles */
.lightbox-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
}

.lightbox-container.active {
    display: block;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: #fff;
    margin-top: 15px;
    font-size: 16px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    z-index: 10;
    padding: 0 15px;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Pagination */
.pagination-container {
    margin-top: 30px;
    text-align: center;
}

.pagination-container a,
.pagination-container span {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    text-decoration: none;
}

.pagination-container a:hover {
    background-color: #f8f9fa;
}

.current-page {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.pagination-ellipsis {
    border: none;
}