/* Fast Image Gallery by Google Photos - Plugin Styles */

/* Error Styles */
.figgp-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.figgp-error p {
    margin: 0 0 10px 0;
}

.figgp-error p:last-child {
    margin-bottom: 0;
}

.figgp-error ul {
    margin: 10px 0;
    padding-left: 20px;
}

.figgp-error li {
    margin-bottom: 5px;
}

.figgp-error small {
    opacity: 0.8;
    font-size: 12px;
}

.figgp-error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    font-size: 14px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.figgp-gallery-container {
    margin: 20px 0;
    width: 100%;
}

/* Photo Item Styles */
.figgp-photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.figgp-photo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.figgp-photo-image {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.figgp-photo-image:hover {
    transform: scale(1.05);
}

/* Load More Button */
.figgp-load-more-container {
    text-align: center;
    margin: 30px 0;
}

.figgp-load-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.figgp-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Gallery Grid Layout */
.figgp-gallery-grid {
    display: grid;
    width: 100%;
}

.figgp-gallery-grid .figgp-photo-item {
    width: 100%;
    height: 100%;
}

.figgp-gallery-grid .figgp-photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery Masonry Layout */
.figgp-gallery-masonry {
    width: 100%;
}

.figgp-gallery-masonry .figgp-photo-item {
    break-inside: avoid;
    page-break-inside: avoid;
}

.figgp-gallery-masonry .figgp-photo-image {
    width: 100%;
    height: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .figgp-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .figgp-gallery-masonry {
        column-count: 2 !important;
    }
}

@media (max-width: 480px) {
    .figgp-gallery-grid {
        grid-template-columns: 1fr !important;
    }

    .figgp-gallery-masonry {
        column-count: 1 !important;
    }
}



.figgp-gallery-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.figgp-gallery-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="90" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.figgp-notice-content {
    position: relative;
    z-index: 1;
}

.figgp-notice-content h4 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: white;
}

.figgp-notice-content p {
    margin: 0 0 20px 0;
    font-size: 16px;
    opacity: 0.9;
    color: white;
    line-height: 1.5;
}

.figgp-view-gallery-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.figgp-view-gallery-btn::before {
    content: '📸';
    margin-right: 8px;
    font-size: 18px;
}

.figgp-view-gallery-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: white !important;
    text-decoration: none !important;
}

.figgp-notice-help {
    font-size: 14px !important;
    opacity: 0.7;
    margin-top: 20px !important;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .figgp-gallery-container {
        margin: 15px 0;
    }
}

@media (max-width: 768px) {
    .figgp-gallery-container {
        margin: 10px 0;
    }

    .figgp-gallery-wrapper iframe {
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .figgp-gallery-container {
        margin: 8px 0;
    }

    .figgp-gallery-wrapper iframe {
        border-radius: 4px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

/* Loading State */
.figgp-gallery-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
}

.figgp-gallery-loading::before {
    content: '';
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #e9ecef;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: figgp-spin 1s linear infinite;
}

@keyframes figgp-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Error State */
.figgp-gallery-error {
    padding: 15px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    margin: 10px 0;
}

/* Gallery Grid Layouts */
.figgp-gallery-grid {
    display: grid;
    gap: var(--figgp-spacing, 10px);
    width: 100%;
}

.figgp-gallery-grid.columns-1 {
    grid-template-columns: 1fr;
}

.figgp-gallery-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.figgp-gallery-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.figgp-gallery-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.figgp-gallery-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
}

.figgp-gallery-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Responsive Grid Adjustments */
@media (max-width: 1200px) {
    .figgp-gallery-grid.columns-6 {
        grid-template-columns: repeat(4, 1fr);
    }

    .figgp-gallery-grid.columns-5 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .figgp-gallery-grid.columns-6,
    .figgp-gallery-grid.columns-5,
    .figgp-gallery-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .figgp-gallery-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {

    .figgp-gallery-grid.columns-6,
    .figgp-gallery-grid.columns-5,
    .figgp-gallery-grid.columns-4,
    .figgp-gallery-grid.columns-3,
    .figgp-gallery-grid.columns-2 {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
.figgp-gallery-wrapper iframe:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .figgp-gallery-wrapper iframe {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}