/* ==========================================================
   Customer Gallery
   ========================================================== */

.gallery-page {
    background: #faf9f7;
    min-height: 60vh;
}

.gallery-page-title {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-page-subtitle {
    color: #6c757d;
    margin-bottom: 0;
}

.gallery-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.gallery-card-image-wrapper {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #eee;
}

.gallery-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-card-body {
    padding: 1.25rem;
}

.gallery-card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
}

.gallery-card-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 0.65rem;
}

.gallery-more-link {
    font-weight: 600;
    text-decoration: none;
}

.gallery-more-link:hover {
    text-decoration: underline;
}

.gallery-modal-image {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 10px;
    background: #f4f4f4;
}

.gallery-full-description {
    white-space: pre-line;
    line-height: 1.8;
    color: #343a40;
}

.gallery-empty {
    background: #ffffff;
    border: 1px dashed #ced4da;
    border-radius: 14px;
}


/* ==========================================================
   Admin Gallery
   ========================================================== */

.admin-gallery-image {
    height: 220px;
    object-fit: cover;
}

.admin-gallery-form-preview {
    max-height: 280px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================
   Home Page Gallery
========================================================== */

.gallery-home-card {
    overflow: hidden;
}

.gallery-home-image-wrapper {
    width: 100%;
    height: 230px;
    overflow: hidden;
    border-radius: 10px;
}

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

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

.gallery-modal-image {
    max-height: 500px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.gallery-full-description {
    white-space: pre-line;
    line-height: 1.8;
    color: #444;
}