/**
 * Custom styles for Nátěry KBN
 * Mobile-first responsive design
 */

:root {
    --primary: #5E3B99;
    --secondary: #C5B4D1;
    --success: #9ACF36;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --action: #9ACF36;
    --action-hover: #86bc2e;
    --action-active: #7db027;
    --bs-primary: #5E3B99;
    --bs-secondary: #C5B4D1;
    --bs-success: #9ACF36;
}

/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile-first layout tweaks */
main.container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

/* Mobile-first: Base font sizes */
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

/* Tablet and up */
@media (min-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    h4 { font-size: 1.5rem; }

    main.container-fluid {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Small screens */
@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.1rem;
    }

    main .card-body .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.5rem;
    }

    main .card-body .d-flex.justify-content-between > * {
        width: 100%;
    }

    .table {
        font-size: 0.95rem;
    }
}

/* PWA Styles */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .navbar {
        padding-top: calc(0.5rem + env(safe-area-inset-top));
    }
}

/* Offline indicator */
#offlineIndicator {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 1030;
    margin: 0;
    border-radius: 0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Toasts (notifications) */
#toastContainer .alert {
    margin-bottom: 0.5rem;
}

@media (max-width: 576px) {
    #toastContainer {
        left: 0 !important;
        right: 0 !important;
        top: 56px;
        min-width: 0 !important;
        padding: 0;
    }

    #toastContainer .toast-notification {
        width: 100%;
        border-radius: 0;
        margin: 0 0 0.5rem 0;
    }
}

/* Loading states */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Cards */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Buttons - touch-friendly sizing */
.btn {
    min-height: 44px;
    padding: 0.5rem 1rem;
}

.btn-sm {
    min-height: 36px;
}

/* Button palette override (green primary actions) */
.btn-primary {
    --bs-btn-bg: var(--action);
    --bs-btn-border-color: var(--action);
    --bs-btn-hover-bg: var(--action-hover);
    --bs-btn-hover-border-color: var(--action-hover);
    --bs-btn-active-bg: var(--action-active);
    --bs-btn-active-border-color: var(--action-active);
    --bs-btn-disabled-bg: var(--action);
    --bs-btn-disabled-border-color: var(--action);
}

.btn-outline-primary {
    --bs-btn-color: var(--action);
    --bs-btn-border-color: var(--action);
    --bs-btn-hover-bg: var(--action);
    --bs-btn-hover-border-color: var(--action);
    --bs-btn-active-bg: var(--action-hover);
    --bs-btn-active-border-color: var(--action-hover);
}

/* Forms - mobile optimized */
.form-control,
.form-select {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Notifications badge visibility */
.notifications-badge-hidden {
    display: none !important;
}

/* Desktop notification badge offset */
.notifications-badge-desktop {
    transform: translate(-50%, calc(-50% + 8px)) !important;
}

.navbar.bg-primary,
.navbar-dark.bg-primary,
.navbar.navbar-dark.bg-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.navbar.bg-primary .navbar-brand,
.navbar.bg-primary .nav-link,
.navbar.bg-primary .navbar-toggler,
.navbar.bg-primary .dropdown-item,
.navbar-dark.bg-primary .navbar-brand,
.navbar-dark.bg-primary .nav-link,
.navbar-dark.bg-primary .navbar-toggler,
.navbar-dark.bg-primary .dropdown-item {
    color: #fff !important;
}

/* Tlačítka uvnitř navbaru si drží vlastní barvu textu (btn-light, btn-warning, ...). */
.navbar.bg-primary .btn-light,
.navbar.bg-primary .btn-light *,
.navbar-dark.bg-primary .btn-light,
.navbar-dark.bg-primary .btn-light * {
    color: #212529 !important;
}
.navbar.bg-primary .btn-light .text-success,
.navbar-dark.bg-primary .btn-light .text-success { color: #198754 !important; }
.navbar.bg-primary .btn-light .text-danger,
.navbar-dark.bg-primary .btn-light .text-danger { color: #dc3545 !important; }
.navbar.bg-primary .btn-light .text-warning,
.navbar-dark.bg-primary .btn-light .text-warning { color: #ffc107 !important; }
.navbar.bg-primary .btn-light .text-primary,
.navbar-dark.bg-primary .btn-light .text-primary { color: var(--primary) !important; }
.navbar.bg-primary .btn-light .text-muted,
.navbar-dark.bg-primary .btn-light .text-muted { color: #6c757d !important; }

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-logo {
    width: 1.15em;
    height: 1.15em;
    margin-right: 0.5rem;
    flex-shrink: 0;
    display: block;
    object-fit: contain;
}

@media (max-width: 576px) {
    .navbar-logo {
        width: 1.05em;
        height: 1.05em;
    }
}

/* Mobile menu */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        margin: 0.5rem -1rem;
        padding: 1rem;
        border-radius: 0.5rem;
    }

    .navbar-dark .navbar-collapse {
        background-color: var(--primary);
    }

    .navbar-dark .dropdown-menu {
        background-color: #5E3B99;
        border-color: rgba(255, 255, 255, 0.2);
    }

    .navbar-dark .dropdown-menu .dropdown-item {
        color: #fff;
    }

    .navbar-dark .dropdown-menu .dropdown-item:hover,
    .navbar-dark .dropdown-menu .dropdown-item:focus {
        background-color: rgba(255, 255, 255, 0.12);
        color: #fff;
    }
}

/* Page headers (mobile-first) */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions > * {
        flex: 1 1 100%;
    }

    .page-actions .btn,
    .page-actions .form-control,
    .page-actions .form-select {
        width: 100% !important;
    }

    .page-actions.btn-group {
        flex-direction: column;
        width: 100%;
    }

    .page-actions.btn-group .btn {
        width: 100%;
        border-radius: 0.375rem !important;
    }

    .page-actions.btn-group .btn + .btn {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .page-actions.page-actions--compact {
        flex-wrap: nowrap;
        gap: 0.35rem;
    }

    .page-actions.page-actions--compact > * {
        flex: 1 1 0;
    }

    .page-actions.page-actions--compact.btn-group {
        flex-direction: row;
    }

    .page-actions.page-actions--compact .btn {
        padding: 0.4rem 0.5rem;
    }

    .page-actions.page-actions--compact .btn + .btn {
        margin-top: 0;
    }

    .page-actions.page-actions--compact .btn-text {
        display: none;
    }

    .page-actions.page-actions--compact .btn i {
        margin-right: 0;
    }
}

/* Photo upload (diary form) */
.photo-upload-card {
    border: 2px dashed #d0d0d0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.photo-upload-card:focus,
.photo-upload-card:hover {
    background: #f2f2f2;
    border-color: #bdbdbd;
    outline: none;
}

.photo-upload-icon {
    font-size: 2.25rem;
    color: var(--primary);
}

.photo-upload-text {
    font-weight: 600;
    margin-top: 0.5rem;
}

.photo-upload-subtext {
    font-size: 0.9rem;
    color: #6c757d;
}

.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.75rem;
}

.photo-preview-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 1 / 1;
}

.photo-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-remove-btn {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    border-radius: 50%;
    padding: 0.25rem 0.35rem;
    line-height: 1;
}

/* ================================================================
   Diary mobile cards
   ================================================================ */
.diary-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: box-shadow .15s, border-color .15s;
    -webkit-tap-highlight-color: transparent;
}
.diary-card:active,
.diary-card:focus {
    box-shadow: 0 2px 10px rgba(111,66,193,.15);
    border-color: #6f42c1;
}
.diary-card--offline {
    background: #fffbe6;
    border-color: #ffc107;
}

/* Left thumbnail */
.diary-card__thumb {
    width: 80px;
    min-height: 80px;
    object-fit: cover;
    flex-shrink: 0;
    border-right: 1px solid #e5e5e5;
}

/* Body */
.diary-card__body {
    flex: 1;
    padding: 10px 12px;
    min-width: 0;
}
.diary-card__top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}
.diary-card__date {
    font-size: 0.82rem;
    font-weight: 700;
    color: #6f42c1;
    white-space: nowrap;
}
.diary-card__job {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #111;
}
.diary-card__address {
    font-size: 0.78rem;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.diary-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.78rem;
    color: #555;
    margin-bottom: 4px;
}
.diary-card__meta i { color: #6f42c1; }
.diary-card__desc {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right arrow */
.diary-card__arrow {
    align-self: center;
    padding: 0 12px;
    color: #bbb;
    font-size: 1rem;
    flex-shrink: 0;
}

/* ================================================================
   Diary list thumbnail (desktop table)
   ================================================================ */
/* Diary list thumbnail */
.diary-entry-thumb {
    width: 56px;
    height: 44px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f0f0;
    display: block;
    cursor: pointer;
    transition: opacity .15s;
}
.diary-entry-thumb:hover { opacity: .8; }
#diaryTable tbody tr:hover td { background: #f8f0ff; }

/* Desktop dropdowns v navbaru — tmavý styl pod fialovou navigací */
@media (min-width: 992px) {
    .navbar .dropdown-menu.show {
        background-color: #2b2640;
        border-color: rgba(255, 255, 255, 0.08);
    }

    .navbar .dropdown-menu.show .dropdown-item {
        color: #f1f1f1;
    }

    .navbar .dropdown-menu.show .dropdown-item:hover,
    .navbar .dropdown-menu.show .dropdown-item:focus {
        background-color: rgba(255, 255, 255, 0.12);
        color: #fff;
    }
}

/* Status badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* ----- Job-status admin: color & icon picker ----- */
.js-color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #e5e7eb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    padding: 0;
}
.js-color-swatch i { opacity: 0; transition: opacity .1s ease; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.js-color-swatch:hover { transform: scale(1.08); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.js-color-swatch.is-selected { border-color: #111827; box-shadow: 0 0 0 3px rgba(94,59,153,.25); }
.js-color-swatch.is-selected i { opacity: 1; }
/* Bílá barva potřebuje tmavý check, aby byl vidět */
.js-color-swatch[data-color="light"] { color: #212529; border-color: #ced4da; }
.js-color-swatch[data-color="light"] i { filter: none; }

.js-icon-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
    gap: 6px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    max-height: 220px;
    overflow-y: auto;
}
.js-icon-swatch {
    aspect-ratio: 1;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.4rem;
    cursor: pointer;
    color: #495057;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .1s ease, background .1s ease, border-color .1s ease, color .1s ease;
    padding: 0;
}
.js-icon-swatch:hover { background: #fff; border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.js-icon-swatch.is-selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(94,59,153,.35);
}

.status-planned {
    background-color: var(--info);
}

.status-in-progress {
    background-color: var(--warning);
}

.status-completed {
    background-color: var(--success);
}

.status-cancelled {
    background-color: var(--secondary);
}

/* Alert severity colors */
.alert-critical {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.alert-high {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

.alert-medium {
    background-color: #cfe2ff;
    border-color: #b6d4fe;
    color: #084298;
}

.alert-low {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

/* List group */
.list-group-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.list-group-item-action:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Job cards */
.job-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Gantt status colors */
.gantt_task_line.status-pending { background: #0dcaf0; border-color: #0dcaf0; }
.gantt_task_line.status-active { background: #9ACF36; border-color: #9ACF36; }
.gantt_task_line.status-paused { background: #6c757d; border-color: #6c757d; }
.gantt_task_line.status-completed { background: #198754; border-color: #198754; }
.gantt_task_line.status-invoiced { background: #0d6efd; border-color: #0d6efd; }
.gantt_task_line.status-cancelled { background: #adb5bd; border-color: #adb5bd; }

/* Vehicle card */
.vehicle-card {
    position: relative;
}

.vehicle-alert-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

/* Job search autocomplete */
#jobSearchResults {
    border-radius: 0 0 .375rem .375rem;
    border: 1px solid rgba(0,0,0,.15);
}

#jobSearchResults .list-group-item {
    border-left: none;
    border-right: none;
}

#jobSearchResults .list-group-item:first-child {
    border-top: none;
}

#jobSearchResults mark {
    background-color: #fff3cd;
    color: inherit;
    border-radius: 2px;
    padding: 0 1px;
}

/* Job checklist (job detail + dashboard) */
.checklist-item,
.dash-checklist-item {
    transition: background-color 0.2s;
}

.checklist-item:last-child,
.dash-checklist-item:last-child {
    border-bottom: none !important;
}

.checklist-item.checklist-done,
.dash-checklist-item.checklist-done {
    background-color: #f0fff4;
}

.checklist-item.checklist-done .checklist-label,
.dash-checklist-item.checklist-done .dash-chk-label {
    text-decoration: line-through;
    color: #6c757d;
}

.checklist-item.checklist-done .checklist-label strong,
.dash-checklist-item.checklist-done .dash-chk-label strong {
    color: #6c757d;
    font-weight: normal;
}

/* Dashboard job cards */
#myJobsGrid .card {
    transition: box-shadow .15s;
}
#myJobsGrid .card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.checklist-cb {
    cursor: pointer;
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
}

.checklist-label {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s, text-decoration 0.2s;
}

/* Diary entry card */
.diary-entry {
    border-left: 4px solid var(--primary);
}

.diary-entry.offline {
    border-left-color: var(--warning);
    background-color: #fff3cd;
}

/* Weather emoji */
.weather-emoji {
    font-size: 2rem;
    line-height: 1;
}

/* Map container */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: 0.5rem;
    overflow: hidden;
}

@media (min-width: 768px) {
    .map-container {
        height: 400px;
    }
}

/* Kanban board */
.kanban-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    align-items: flex-start;
}

.kanban-column-wrap {
    flex: 0 0 300px;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
}

.kanban-column {
    min-height: 60px;
    max-height: 70vh;
    overflow-y: auto;
}

.kanban-card {
    cursor: grab;
    transition: transform 0.2s;
}

.kanban-card:active {
    cursor: grabbing;
}

.kanban-card.dragging,
.kanban-card-ghost {
    opacity: 0.4;
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.kanban-card-drag {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
    transform: rotate(1deg);
}

.kanban-column {
    transition: background 0.15s;
}

.kanban-column.sortable-over {
    background: rgba(94, 59, 153, 0.06);
}

/* Calendar styles */
.fc-event {
    cursor: pointer;
}

/* Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Touch feedback */
.btn:active {
    transform: scale(0.98);
}

/* Install prompt */
.install-prompt {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1040;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .install-prompt {
        left: auto;
        right: 1rem;
        max-width: 400px;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }

    .card {
        break-inside: avoid;
    }
}

/* Accessibility */
.visually-hidden-focusable:not(:focus):not(:focus-within) {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Dark mode support (future) */
@media (prefers-color-scheme: dark) {
    /* Will be implemented in future version */
}

/* ===== Photo Lightbox ===== */
.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-lightbox.d-none {
    display: none !important;
}

.photo-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.photo-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-lightbox-content img {
    max-width: 95vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.photo-lightbox-close,
.photo-lightbox-prev,
.photo-lightbox-next {
    position: fixed;
    z-index: 2;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.photo-lightbox-close:hover,
.photo-lightbox-prev:hover,
.photo-lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.photo-lightbox-close {
    top: 12px;
    right: 12px;
}

.photo-lightbox-prev {
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.photo-lightbox-next {
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.photo-lightbox-caption {
    color: rgba(255,255,255,0.8);
    margin-top: 8px;
    font-size: 0.875rem;
    text-align: center;
    max-width: 90vw;
}

.photo-lightbox-counter {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
    z-index: 2;
}

/* Thumbnail grid in modals */
.diary-photo-thumb {
    cursor: pointer;
    object-fit: cover;
    height: 100px;
    width: 100%;
    border-radius: 4px;
    transition: opacity 0.15s;
}

.diary-photo-thumb:hover {
    opacity: 0.85;
}
