/* ======================================================
   Фотогалереи — /photo/photo.css
   ====================================================== */
.photo-wrap {
    max-width: none;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0 20px 1rem;
}
.photo-h1 {
    font-family: Roboto, sans-serif;
    font-weight: 100;
    font-size: 21pt;
    margin-bottom: 0.5rem;
}
.photo-empty {
    color: #888;
    font-style: italic;
    margin: 1.5rem 0;
}

/* Список авторов */
.photo-author-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.photo-author-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.6rem;
    background: #fafafa;
    padding: 0.75rem 1rem;
}
.photo-author-link {
    font-weight: 600;
    font-size: 1.05em;
    color: #333;
    text-decoration: none;
}
.photo-author-link:hover {
    text-decoration: underline;
    color: #6a5acd;
}
.photo-author-count {
    display: block;
    font-size: 0.9em;
    color: #666;
    margin-top: 0.25rem;
}

/* Список галерей автора */
.photo-gallery-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.photo-gallery-item {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.6rem;
    background: #fafafa;
    padding: 0.75rem 1rem;
}
.photo-gallery-link {
    font-weight: 600;
    font-size: 1.05em;
    color: #333;
    text-decoration: none;
}
.photo-gallery-link:hover {
    text-decoration: underline;
    color: #6a5acd;
}

/* Обёртка картинки в ячейке галереи (для кнопки «i») */
.photo-gallery-item-img-wrap {
    position: relative;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

/* Кнопка информации о картинке (EXIF) на странице просмотра галереи */
.photo-gallery-info-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    padding: 0;
    line-height: 1;
    font-size: 12px;
    font-weight: bold;
    font-style: italic;
    color: #fff;
    background: #2196F3;
    border: 1px solid #1976D2;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin: 0;
}

.photo-gallery-info-btn:hover {
    background: #1976D2;
}

/* Авторский текст */
.photo-autor-text {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.photo-logo-text {
    margin-bottom: 1rem;
}

/* Блок картинок — на всю ширину страницы с отступами 20px */
.photo-gallery-block {
    width: 100%;
    box-sizing: border-box;
    margin-top: 1rem;
    padding: 0;
}

/* Сетка галереи — строка картинок по центру */
.photo-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
}

/* Ячейка картинки в галерее */
.photo-gallery-item-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    flex-shrink: 0;
    margin-right: 10px;
    position: relative;
    overflow: visible;
    width: auto;
    min-width: 0;
    padding: 10px;
}

/* Заголовок картинки в галерее */
.photo-gallery-item-header {
    width: 100%;
    text-align: center;
    line-height: 1.4;
}

/* Подпись картинки в галерее */
.photo-gallery-item-footer {
    width: 100%;
    text-align: center;
    line-height: 1.4;
}
