/* Sumou Decor Gallery - Premium Dark Mode Styling */

.sumou-gallery-container {
    width: 80%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    background-color: transparent;
    color: #e4e4e7;
    font-family: 'Cairo', 'Outfit', sans-serif;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .sumou-gallery-container {
        width: 92%;
    }
}

/* Filter Bar */
.sumou-gallery-filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.sumou-filter-btn {
    background-color: #18181b;
    color: #a1a1aa;
    border: 1px solid #27272a;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: 'Cairo', sans-serif;
}

.sumou-filter-btn:hover {
    color: #dd4826;
    border-color: #dd4826;
    box-shadow: 0 0 10px rgba(221, 72, 38, 0.15);
    transform: translateY(-2px);
}

.sumou-filter-btn.active {
    background-color: #dd4826;
    color: #ffffff;
    border-color: #dd4826;
    box-shadow: 0 4px 12px rgba(221, 72, 38, 0.25);
}

/* Gallery Grid (CSS Columns Masonry) */
.sumou-gallery-grid {
    column-count: 5;
    column-gap: 24px;
    width: 100%;
    transition: all 0.4s ease-in-out;
}

@media (max-width: 1600px) {
    .sumou-gallery-grid {
        column-count: 4;
        column-gap: 20px;
    }
}

@media (max-width: 1200px) {
    .sumou-gallery-grid {
        column-count: 3;
        column-gap: 18px;
    }
}

@media (max-width: 900px) {
    .sumou-gallery-grid {
        column-count: 2;
        column-gap: 16px;
    }
}

@media (max-width: 600px) {
    .sumou-gallery-grid {
        column-count: 1;
        column-gap: 0;
    }
}

/* Gallery Item */
.sumou-gallery-item {
    break-inside: avoid;
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    background-color: transparent;
    border: none;
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s ease;
    opacity: 1;
    transform: scale(1);
    display: inline-block;
    width: 100%;
}

@media (max-width: 600px) {
    .sumou-gallery-item {
        margin-bottom: 16px;
    }
}

/* Hiding class used by JS filter */
.sumou-gallery-item.sumou-hide {
    opacity: 0;
    transform: scale(0.85);
    position: absolute;
    pointer-events: none;
    visibility: hidden;
    margin: 0;
    height: 0;
    width: 0;
    border: none;
    padding: 0;
    overflow: hidden;
}

.sumou-gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.sumou-gallery-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
}

.sumou-gallery-img {
    display: block;
    width: 100%;
    height: auto; /* Maintains natural aspect ratio */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    object-fit: cover;
}

/* Overlay & Hover Name Reveal */
.sumou-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 12, 14, 0.9) 0%, rgba(12, 12, 14, 0.3) 50%, rgba(12, 12, 14, 0) 100%);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 20px;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
}

.sumou-gallery-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transform: translateY(15px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    font-family: 'Cairo', sans-serif;
}

/* Hover Effects */
.sumou-gallery-item:hover .sumou-gallery-img {
    transform: scale(1.05);
}

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

.sumou-gallery-item:hover .sumou-gallery-title {
    transform: translateY(0);
}

/* Empty/Loading States */
.sumou-gallery-empty {
    text-align: center;
    color: #71717a;
    font-size: 16px;
    padding: 40px 0;
}
