/**
 * Single Gallery Page Styles
 */

/* Breadcrumb styles */
.breadcrumb-section {
    background-color: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
}

.breadcrumbs {
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--primary-color, #223C93);
}

.breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumbs .current {
    color: var(--primary-color, #223C93);
    font-weight: 500;
}

/* Gallery Hero Section */
.gallery-hero-section {
    margin-bottom: 40px;
}

.gallery-featured-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 540px;
}

.gallery-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video Play Button */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color, #223C93);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.video-play-button:hover {
    background-color: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-button svg {
    width: 40px;
    height: 40px;
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.video-modal.active {
    visibility: visible;
    opacity: 1;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
    background: #000;
    border-radius: 5px;
    overflow: hidden;
}

.close-video {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.close-video:hover {
    transform: scale(1.1);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Gallery Content Section */
.gallery-content-section {
    margin-bottom: 60px;
}

.gallery-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000;
    text-align: center;
}

.gallery-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.gallery-content p {
    margin-bottom: 20px;
}

/* Gallery Images Grid */
.gallery-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-image-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    aspect-ratio: 1;
}

.gallery-image-item:hover {
    transform: translateY(-5px);
}

.gallery-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Related Galleries Section */
.related-galleries-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color, #223C93);
}

.related-galleries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.related-gallery {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.related-gallery:hover {
    transform: translateY(-5px);
}

.related-gallery-image {
    overflow: hidden;
}

.related-gallery-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.related-gallery:hover .related-gallery-image img {
    transform: scale(1.05);
}

.related-gallery-content {
    padding: 20px;
}

.related-gallery-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.related-gallery-title a {
    color: #333;
    text-decoration: none;
}

.related-gallery-title a:hover {
    color: var(--primary-color, #223C93);
}

.related-gallery-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: var(--primary-color, #223C93);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--secondary-color, #B89B33);
}

/* Magnific Popup Customization */
.mfp-bg {
    background: rgba(0, 0, 0, 0.9);
}

.mfp-figure:after {
    box-shadow: none;
    background: transparent;
}

.mfp-title {
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .gallery-title {
        font-size: 28px;
    }
    
    .video-play-button {
        width: 60px;
        height: 60px;
    }
    
    .video-play-button svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 768px) {
    .gallery-title {
        font-size: 24px;
    }
    
    .gallery-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .related-galleries {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    .gallery-featured-image {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .gallery-images-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .related-galleries {
        grid-template-columns: 1fr;
    }
    
    .video-play-button {
        width: 50px;
        height: 50px;
    }
    
    .video-play-button svg {
        width: 24px;
        height: 24px;
    }
} 