* {
    font-family: 'Inter', sans-serif;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px;
}

.gallery-container h1 {
    font-weight: 700;
    padding: 50px 0;
    font-size: 45px;
    text-align: center;
}

.search-section {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px;
    border: 2px solid var(--vp-c-border);
    border-radius: 8px;
    font-size: 16px;
    background: var(--vp-c-bg-alt);
    color: var(--vp-c-text-1);
}

.search-input:hover {
    border-color: var(--vp-c-brand-1);
}

.search-input:focus {
    outline: none;
    border-color: var(--vp-c-brand-1);
}

.filters-section {
    margin-bottom: 30px;
}

.filters-section h3 {
    margin-bottom: 15px;
    color: var(--vp-c-text-1);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    justify-content: center;
}

.tag-button {
    padding: 8px 16px;
    border: 2px solid var(--vp-c-border);
    background: var(--vp-c-bg);
    color: var(--vp-c-text-2);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.tag-button:hover {
    border-color: var(--vp-c-brand-1);
    color: var(--vp-c-brand-1);
}

.tag-button.active {
    background: var(--vp-c-brand-1);
    border-color: var(--vp-c-brand-1);
    color: white;
}

.clear-button {
    padding: 8px 16px;
    background: var(--vp-c-danger-1);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.clear-button:hover {
    background: var(--vp-c-danger-2);
}

.results-info {
    margin-bottom: 20px;
    color: var(--vp-c-text-2);
    font-size: 14px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.image-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.image-item:hover .image-overlay {
    transform: translateY(0);
}

.image-overlay h4 {
    font-weight: 700;
    margin: 0 0 8px 0;
    font-size: 18px;
}

.image-overlay p {
    font-weight: 700;
    margin: 0 0 12px 0;
    font-size: 14px;
    line-height: 1.4;
}

.image-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.image-tag,
.image-season {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards;
}

.modal-overlay.closing {
    animation: fadeOut 0.2s ease forwards;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    background: var(--vp-c-bg);
    border-radius: 12px;
    overflow: hidden;
    cursor: default;
    transform: scale(0.9);
    opacity: 0;
    animation: modalSlideIn 0.3s ease forwards;
}

.modal-overlay.closing .modal-content {
    animation: modalSlideOut 0.2s ease forwards;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: background 0.3s ease, transform 0.2s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.modal-description {
    padding: 20px;
    color: var(--vp-c-text-1);
}

.modal-description h4 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: var(--vp-c-text-1);
}

.modal-description p {
    margin: 0 0 15px 0;
    color: var(--vp-c-text-2);
    line-height: 1.5;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--vp-c-text-2);
}

.VPButton {
    display: inline-block;
    border: 1px solid transparent;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}

.VPButton.active {
    transition: color 0.1s, border-color 0.1s, background-color 0.1s;
}

.VPButton.medium {
    border-radius: 20px;
    padding: 0 20px;
    line-height: 38px;
    font-size: 14px;
}

.VPButton.big {
    border-radius: 24px;
    padding: 0 24px;
    line-height: 46px;
    font-size: 16px;
}

.VPButton.brand {
    border-color: var(--vp-button-brand-border);
    color: var(--vp-button-brand-text);
    background-color: var(--vp-button-brand-bg);
}

.VPButton.brand:hover {
    border-color: var(--vp-button-brand-hover-border);
    color: var(--vp-button-brand-hover-text);
    background-color: var(--vp-button-brand-hover-bg);
}

.VPButton.brand.active {
    border-color: var(--vp-button-brand-active-border);
    color: var(--vp-button-brand-active-text);
    background-color: var(--vp-button-brand-active-bg);
}

.VPButton.alt {
    border-color: var(--vp-button-alt-border);
    color: var(--vp-button-alt-text);
    background-color: var(--vp-button-alt-bg);
}

.VPButton.alt:hover {
    border-color: var(--vp-button-alt-hover-border);
    color: var(--vp-button-alt-hover-text);
    background-color: var(--vp-button-alt-hover-bg);
}

.VPButton.alt.active {
    border-color: var(--vp-button-brand-active-border);
    color: var(--vp-button-brand-active-text);
    background-color: var(--vp-button-brand-active-bg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes modalSlideOut {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(0.9);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .tags-container {
        gap: 8px;
    }

    .tag-button {
        font-size: 12px;
        padding: 6px 12px;
    }

    .modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .modal-image {
        max-height: 60vh;
    }

    .modal-description {
        padding: 15px;
    }
}