/* Travel Blog Gallery Styles */
.travel-blog-gallery {
    margin: 30px 0;
}

.travel-blog-gallery h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
    
.gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gallery-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

/* All Travel Blog Galleries Styles */
.all-travel-blog-galleries {
    margin: 40px 0;
}

.all-travel-blog-galleries .galleries-grid {
    display: grid;
    gap: 25px;
}

.gallery-item-wrapper {
    position: relative;
}

.gallery-item-wrapper .gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item-wrapper .gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item-wrapper .gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item-wrapper .gallery-item:hover .gallery-image {
    transform: scale(1.08);
}

.gallery-item-info {
    padding: 15px;
    background: white;
}

.gallery-item-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.gallery-item-info h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.gallery-item-info h4 a:hover {
    color: #007cba;
}

.gallery-item-meta {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.gallery-item-meta .author {
    font-weight: 500;
    color: #007cba;
}

.gallery-item-meta .date {
    color: #888;
}

.all-travel-galleries-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Load More Button Styles */
.gallery-load-more-container {
    text-align: center;
    margin-top: 30px;
    padding: 20px 0;
}

.gallery-load-more-btn {
    background: #007cba;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.3);
}

.gallery-load-more-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.4);
}

.gallery-load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.gallery-load-more-btn:disabled:hover {
    background: #ccc;
    transform: none;
    box-shadow: none;
}

/* Gallery Upload Interface Styles */
.gallery-upload-section {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.gallery-upload-section h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 20px;
}

.gallery-upload-section p {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.5;
}

.gallery-upload-container {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin: 20px 0;
    transition: all 0.3s ease;
    background: white;
}

.gallery-upload-container.drag-over {
    border-color: #007cba;
    background-color: #f0f8ff;
    transform: scale(1.02);
}

.gallery-upload-container p {
    margin: 10px 0 0 0;
    color: #888;
    font-style: italic;
}

.gallery-upload-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin: 10px 0;
    transition: background-color 0.3s ease;
}

.gallery-upload-button:hover {
    background: #005a87;
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-preview-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-preview-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-image:hover {
    background: rgba(220, 53, 69, 1);
}

.gallery-status {
    margin: 15px 0;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 500;
}

.gallery-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.gallery-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.gallery-status.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.gallery-progress {
    display: none;
    margin: 15px 0;
    padding: 15px;
    background-color: #e9ecef;
    border-radius: 6px;
    text-align: center;
    color: #495057;
    font-weight: 500;
}

#gallery-file-input {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 10px;
    }
    
    .gallery-preview {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .gallery-upload-container {
        padding: 20px;
    }
    
    .gallery-upload-section {
        padding: 15px;
    }

    .all-travel-blog-galleries .galleries-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .gallery-item-wrapper .gallery-image {
        height: 180px;
    }

    .gallery-item-info {
        padding: 12px;
    }

    .gallery-item-info h4 {
        font-size: 14px;
    }

    .gallery-item-meta {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .all-travel-blog-galleries .galleries-grid {
        grid-template-columns: 1fr !important;
    }
} 