﻿.photographer-item {
    background-size: cover;
    background-position: center;
    aspect-ratio: 340 / 500;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: end;
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
}

.photographer-item-fallback-img {
    display: none;
}

.photographer-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 45%, transparent 70%);
    border-radius: var(--radius-xl);
    transition: opacity var(--transition) ease;
    pointer-events: none;
    z-index: 0;
}

.photographer-item:hover::before {
    opacity: 0;
}

.photographers-item-inner {
    padding: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    z-index: 1;
}

.photographers-item-inner::after {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    background: rgba(0,0,0,0.45);
    opacity: 0;
    transition: opacity var(--transition) ease;
    z-index: 0;
    border-radius: var(--radius-xl);
}

.photographer-item:hover .photographers-item-inner::after {
    opacity: 1;
}

.photographers-item-inner > * {
    position: relative;
    z-index: 1;
}

.photographer-item-default-info {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.photographer-item-top {
    display: flex;
    gap: 6px;
    font-size: 14px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.photographer-item-top-city {
    display: inline-block;
    max-width: 100%;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--bg-body);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.photographer-item-name {
    font-size: 24px;
    color: var(--text-white);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

a.photographer-item-name {
    display: block;
    text-decoration: none;
    transition: color var(--transition) ease;
}

a.photographer-item-name:hover {
    color: var(--color-green);
}

.photographer-item-description {
    font-size: 12px;
    color: var(--text-white);
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.photographer-item-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    transition: opacity var(--transition) ease, visibility var(--transition) ease, max-height var(--transition) ease, padding-bottom var(--transition) ease;
}

.photographer-item:hover .photographer-item-info {
    opacity: 1;
    visibility: visible;
    max-height: 300px;
    padding-bottom: 10px;
}

.photographer-item-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.photographer-item-genre {
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    font-weight: 500;
    color: var(--bg-body);
    line-height: 1.3;
    white-space: normal;
    margin: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.photographer-item-description {
    font-size: 12px;
    color: var(--text-white);
}

.photographer-item-link {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-green);
    border: 1px solid var(--color-green);
    border-radius: var(--radius-md);
    padding: 10px 20px;
    width: 100%;
    transition: background var(--transition) ease, color var(--transition) ease;
}

.photographer-item:hover .photographer-item-link {
    background: var(--color-green);
    color: #fff;
}

@media (max-width: 650px) {
    .photographer-item-top {
        font-size: 12px;
        gap: 4px;
    }

    .photographer-item-top-city {
        font-size: 12px;
        padding: 4px 8px;
    }

    .photographer-item-top-dot {
        display: none;
    }

    .photographer-item-name {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .photographer-item-genres {
        display: none;
    }
}