/**
 * Single Gallery Template Styles
 * Chi tiết mẫu thiết kế: hero 2 cột, mô tả, mẫu tương tự, CTA
 */

.single-gallery-template {
    padding: 24px 0 48px;
    background: #f8f9fa;
}

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

/* Breadcrumb */
.single-gallery-template #breadcrumb {
    margin-bottom: 24px;
    padding: 12px 0;
}

/* Hero: 2 cột */
.gallery-single-hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
    margin-bottom: 40px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.gallery-hero-left {
    padding: 24px;
}

.gallery-featured-wrap {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f5f9;
}

.gallery-featured-image {
    line-height: 0;
}

.gallery-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.gallery-featured-placeholder {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #94a3b8;
    font-size: 14px;
}

.gallery-featured-placeholder i {
    font-size: 48px;
}

.gallery-download-btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff6b35 0%, #fc9837 100%);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.gallery-download-btn-hero:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    color: #fff;
}

/* Right: Thông tin mẫu thiết kế */
.gallery-hero-right {
    padding: 24px;
    background: #f8fafc;
    min-height: 100%;
}

.gallery-info-card {
    position: sticky;
    top: 24px;
}

.gallery-info-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
    letter-spacing: 0.02em;
}

.gallery-info-divider {
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #fc9837);
    margin-bottom: 20px;
    border-radius: 1px;
}

.gallery-info-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.gallery-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.gallery-info-item:last-of-type {
    border-bottom: none;
}

.gallery-info-item i {
    color: #ff6b35;
    width: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.gallery-info-item .label {
    flex-shrink: 0;
    color: #64748b;
    min-width: 85px;
}

.gallery-info-item .value {
    color: #1e293b;
}

.gallery-info-item .value a {
    color: #ff6b35;
    text-decoration: none;
}

.gallery-info-item .value a:hover {
    text-decoration: underline;
}

.gallery-info-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.gallery-cta-download {
    background: linear-gradient(135deg, #ff6b35 0%, #fc9837 100%);
    color: #fff;
    border: none;
}

.gallery-cta-download:hover {
    opacity: 0.95;
    color: #fff;
}

.gallery-cta-request {
    background: #fff;
    color: #ff6b35;
    border: 2px solid #ff6b35;
}

.gallery-cta-request:hover {
    background: #fff5f0;
    color: #e55a2b;
}

/* Mô tả mẫu thiết kế */
.gallery-description-section {
    background: #fff;
    padding: 32px;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.gallery-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px;
    letter-spacing: 0.02em;
}

.gallery-section-divider {
    height: 2px;
    width: 60px;
    background: linear-gradient(90deg, #ff6b35, #fc9837);
    margin-bottom: 24px;
    border-radius: 1px;
}

.gallery-description-content {
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
}

.gallery-description-content p:last-child {
    margin-bottom: 0;
}

/* Mẫu thiết kế tương tự */
.gallery-related-section {
    margin-bottom: 40px;
}

.gallery-related-section .gallery-section-title {
    margin-bottom: 12px;
}

.gallery-related-section .gallery-section-divider {
    margin-bottom: 24px;
}

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

.gallery-related-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s, transform 0.2s;
}

.gallery-related-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

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

.gallery-related-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f1f5f9;
}

.gallery-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-related-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 28px;
}

.gallery-related-title {
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    color: #1e293b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-related-link:hover .gallery-related-title {
    color: #ff6b35;
}

/* CTA section */
.gallery-cta-section {
    margin-bottom: 0;
}

.gallery-cta-box {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    box-shadow: 0 4px 20px rgba(30, 41, 59, 0.2);
}

.gallery-cta-text {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-cta-text i {
    color: #fc9837;
}

.gallery-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.gallery-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s, background 0.2s, color 0.2s;
}

.gallery-cta-btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #fc9837 100%);
    color: #fff;
    border: none;
}

.gallery-cta-btn-primary:hover {
    opacity: 0.95;
    transform: translateY(-1px);
    color: #fff;
}

.gallery-cta-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.gallery-cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-single-hero {
        grid-template-columns: 1fr;
    }

    .gallery-hero-right {
        padding: 24px;
    }

    .gallery-info-card {
        position: static;
    }

    .gallery-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .single-gallery-template {
        padding: 16px 0 32px;
    }

    .gallery-hero-left,
    .gallery-hero-right,
    .gallery-description-section {
        padding: 20px;
    }

    .gallery-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .gallery-related-title {
        font-size: 13px;
        padding: 10px;
    }

    .gallery-cta-box {
        padding: 24px 20px;
    }

    .gallery-cta-text {
        font-size: 16px;
    }

    .gallery-cta-buttons {
        flex-direction: column;
    }

    .gallery-cta-btn {
        width: 100%;
        justify-content: center;
    }
}