:root {
    --dg-bg-color: #D2C495;
    --dg-item-text: #4a3b2a;
    --dg-item-hover-bg: #fff;
    --dg-item-hover-text: #76090C;
}

.dates-gallery-wrapper {
    position: relative;
    background-color: var(--dg-bg-color);
    background-image: url('https://rankupdev.ir/projects/banery/wp-content/uploads/2025/12/Vector-1.webp');
    background-repeat: no-repeat;
    background-position: top center;
    border-radius: 12px;
    padding: 20px 0;
    display: flex;
    direction: rtl;
    min-height: 500px;
    font-family: inherit;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.1);
}

.dg-sidebar {
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    padding-right: 0;
}

.dg-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    color: var(--dg-item-text) !important;
    font-weight: 700;
    padding: 12px 15px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border-radius: 25px 0px 0px;
    margin-left: 10px;
    position: relative;
    overflow: hidden;
}

.dg-item-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dg-menu-item:hover, .dg-menu-item.active {
    color: var(--dg-item-hover-text) !important;
    background: var(--dg-item-hover-bg);
    padding-left: 25px;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.1);
}

.dg-icon {
    width: 22px;
    height: auto;
    transition: transform 0.3s;
}

.dg-arrow-wrapper {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    color: var(--dg-item-hover-text);
}

.dg-arrow-svg {
    width: 20px;
    height: 20px;
}

.dg-menu-item:hover .dg-arrow-wrapper, 
.dg-menu-item.active .dg-arrow-wrapper {
    opacity: 1;
    transform: translateX(0);
}

.dg-menu-item:hover .dg-icon {
    transform: scale(1.1) rotate(5deg);
}

.dg-stage {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-inline: 40px;
}

.dg-big-preview-container {
    width: 100%;
    max-width: 400px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    pointer-events: none;
    margin-bottom: auto; 
    margin-top: 20px;
}

#dg-main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.25));
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    transform: scale(0.8) translateY(20px);
}

#dg-main-image.show {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.dg-thumbnails-row {
    display: flex;
    gap: 10px;
    padding-bottom: 25px;
    z-index: 6;
    flex-wrap: wrap;
    justify-content: center;
}

.dg-thumb-wrapper {
    width: 100px;
    height: 80px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    padding: 5px;
}

.dg-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(30%);
}

.dg-thumb-wrapper:hover .dg-thumb-img,
.dg-thumb-wrapper.active .dg-thumb-img {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.3) translateY(-10px);
}

@media (max-width: 900px) {
    .dates-gallery-wrapper {
        flex-direction: column-reverse;
        height: auto;
        padding-bottom: 0;
    }
    .dg-sidebar {
        width: 100%;
        padding: 20px;
    }
    .dg-menu-item {
        border-radius: 10px;
        margin: 0;
    }
    .dg-big-preview-container {
        height: 250px;
        margin-top: 0;
    }
    .dg-thumbnails-row {
        gap: 5px;
    }
    .dg-thumb-wrapper {
        width: 60px;
        height: 50px;
    }
}