.send-gallery-wrapper .send-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .send-gallery-wrapper .send-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.send-gallery-wrapper .gallery-item {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background: #fff;
    cursor: pointer;
}

.send-gallery-wrapper .gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
    transition: transform 0.3s;
}

.send-gallery-wrapper .gallery-item:hover img {
    transform: scale(1.05);
}

.send-gallery-wrapper .send-gallery-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

.send-gallery-wrapper .send-gallery-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(4px);
}

.send-gallery-wrapper .send-gallery-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    text-align: center;
    animation: scaleIn 0.4s ease;
}

.send-gallery-wrapper .send-gallery-modal-content {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
}

.send-gallery-wrapper .send-gallery-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #333;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
}

.send-gallery-wrapper .send-gallery-buttons {
    margin-top: 20px;
}

.send-gallery-wrapper .send-gallery-button {
    display: inline-block;
    margin: 8px;
    padding: 10px 20px;
    background-color: #4ecdc4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.send-gallery-wrapper .send-gallery-button:hover {
    background-color: #38b9b0;
    transform: scale(1.05);
}

.send-gallery-wrapper .send-gallery-toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    padding: 16px;
    position: fixed;
    z-index: 2000;
    left: 50%;
    bottom: 30px;
    font-size: 16px;
}

.send-gallery-wrapper .send-gallery-toast.show {
    visibility: visible;
    animation: fadeInOut 3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

@keyframes scaleIn {
    0% { transform: scale(0.8) translate(-50%, -50%); opacity: 0; }
    100% { transform: scale(1) translate(-50%, -50%); opacity: 1; }
}
