/* Gallery Single Post Styles */
.gallery-section {
    padding: 60px 0;
}

.gallery-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Gallery Layout */
.gallery-main {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.gallery-featured-image {
    flex: 1;
    min-width: 300px;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-image-placeholder {
    padding: 100px;
    text-align: center;
    color: #666;
    font-weight: 500;
}

.gallery-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.gallery-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0039c7;
}

.gallery-description {
    margin-bottom: 30px;
    color: #333;
    line-height: 1.6;
}

.gallery-contact-btn {
    display: inline-block;
    background-color: #ffcc00;
    color: #000;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
}

.gallery-contact-btn:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
}

.gallery-contact-btn i {
    margin-left: 8px;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.gallery-thumbnail {
    flex: 0 0 calc(10% - 12px);
    min-width: 100px;
    aspect-ratio: 1/1;
    background-color: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-thumbnail.active {
    box-shadow: 0 0 0 3px #ffcc00;
}

.gallery-thumbnail.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 204, 0, 0.2);
    pointer-events: none;
}

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

.gallery-thumbnail:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

/* Gallery Content Section */
.gallery-content-section {
    background-color: #f8f8f8;
    padding: 40px;
    border-radius: 4px;
    margin-bottom: 50px;
}

.gallery-content-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0039c7;
}

.gallery-content {
    line-height: 1.6;
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 80%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Related Items */
.gallery-related {
    margin-top: 60px;
}

.gallery-related-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #0039c7;
}

.gallery-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-card {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.gallery-card-image {
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

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

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

.gallery-card-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
    padding: 20px 15px;
    transition: all 0.3s ease;
}

.gallery-card-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Request Quote Button */
.gallery-footer {
    margin-top: 40px;
    text-align: center;
}

.request-quote-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffcc00;
    color: #000;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 30px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.request-quote-button:hover {
    background-color: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.request-quote-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.request-quote-button .icon {
    display: inline-flex;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.request-quote-button:hover .icon {
    transform: translateX(4px);
}

/* Responsive styles */
@media (max-width: 992px) {
    .gallery-main {
        flex-direction: column;
    }
    
    .gallery-featured-image {
        margin-bottom: 20px;
    }
    
    .gallery-info {
        padding-left: 0;
    }
    
    .gallery-thumbnail {
        flex: 0 0 calc(25% - 12px);
    }
    
    .gallery-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-section {
        padding: 40px 0;
    }
    
    .gallery-title {
        font-size: 28px;
    }
    
    .gallery-content-section {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .gallery-thumbnail {
        flex: 0 0 calc(33.333% - 10px);
    }
    
    .gallery-related-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        left: -50px;
    }
    
    .lightbox-next {
        right: -50px;
    }
}
