/* ========================================
   UCET CHOVATELE - GALERIE STANICE
   Sprava galerie fotek chovatelske stanice
   MOBILE FIRST PRISTUP
   ======================================== */

/* ========================================
   GALLERY PAGE HEADER
   ======================================== */

.gallery-page__header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.gallery-page__header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery-page__title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.gallery-page__count {
    font-size: 13px;
    color: #6b7280;
}

.gallery-page__upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.gallery-page__upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
}

.gallery-page__upload-btn svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   INFO BOX
   ======================================== */

.gallery-page__info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 20px;
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    font-size: 13px;
    color: #0369a1;
}

.gallery-page__info svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #0ea5e9;
}

.gallery-page__info p {
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   FILTRY GALERIE
   ======================================== */

.gallery-page__filters {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    margin-bottom: 20px;
    background-color: #f9fafb;
    border-radius: 12px;
}

.gallery-page__filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.gallery-page__filter-row--year {
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}

.gallery-page__filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    min-width: 40px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gallery-page__filter-label svg {
    color: #9ca3af;
}

.gallery-page__filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.gallery-page__filter-tag {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-page__filter-tag:hover {
    border-color: #f97316;
    color: #ea580c;
}

.gallery-page__filter-tag--active {
    background-color: #fff7ed;
    border-color: #f97316;
    color: #ea580c;
}

.gallery-page__filter-select {
    padding: 8px 32px 8px 12px;
    font-size: 12px;
    color: #374151;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    transition: border-color 0.2s ease;
}

.gallery-page__filter-select:hover {
    border-color: #d1d5db;
}

.gallery-page__filter-select:focus {
    outline: none;
    border-color: #f97316;
}

/* ========================================
   GALLERY GRID - MOBILE FIRST
   ======================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-grid__item {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.gallery-grid__item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Titulni fotka - zvyrazneni */
.gallery-grid__item--cover {
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

/* ========================================
   DRAG HANDLE
   ======================================== */

.gallery-grid__drag-handle {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.gallery-grid__item:hover .gallery-grid__drag-handle {
    opacity: 1;
}

.gallery-grid__drag-handle:active {
    cursor: grabbing;
}

.gallery-grid__drag-handle svg {
    width: 14px;
    height: 14px;
    color: #6b7280;
}

/* ========================================
   IMAGE CONTAINER
   ======================================== */

.gallery-grid__image {
    position: relative;
    aspect-ratio: 1 / 1;
    background-color: #f3f4f6;
    overflow: hidden;
}

.gallery-grid__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder pro demo */
.gallery-grid__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #9ca3af;
}

.gallery-grid__placeholder svg {
    width: 32px;
    height: 32px;
}

.gallery-grid__placeholder span {
    font-size: 11px;
    font-weight: 500;
}

/* ========================================
   COVER BADGE
   ======================================== */

.gallery-grid__cover-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    color: #ffffff;
    z-index: 10;
}

.gallery-grid__cover-badge svg {
    width: 12px;
    height: 12px;
}

/* ========================================
   OVERLAY S AKCEMI
   ======================================== */

.gallery-grid__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 5;
}

.gallery-grid__item:hover .gallery-grid__overlay {
    opacity: 1;
}

.gallery-grid__actions {
    display: flex;
    gap: 8px;
}

.gallery-grid__action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-grid__action svg {
    width: 18px;
    height: 18px;
    color: #374151;
}

.gallery-grid__action--cover:hover {
    background-color: #fef3c7;
}

.gallery-grid__action--cover:hover svg {
    color: #f59e0b;
}

.gallery-grid__action--edit:hover {
    background-color: #dbeafe;
}

.gallery-grid__action--edit:hover svg {
    color: #2563eb;
}

.gallery-grid__action--delete:hover {
    background-color: #fee2e2;
}

.gallery-grid__action--delete:hover svg {
    color: #dc2626;
}

/* ========================================
   INFO POD FOTKOU
   ======================================== */

.gallery-grid__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
}

.gallery-grid__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
}

.gallery-grid__tag {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 4px;
}

.gallery-grid__tag--dog {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.gallery-grid__tag--action {
    background-color: #fef3c7;
    color: #b45309;
}

.gallery-grid__title {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-grid__desc {
    font-size: 11px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.gallery-grid__date {
    font-size: 11px;
    color: #9ca3af;
}

/* ========================================
   ADD PHOTO CARD
   ======================================== */

.gallery-grid__add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    aspect-ratio: 1 / 1;
    background-color: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gallery-grid__add:hover {
    background-color: #fff7ed;
    border-color: #f97316;
}

.gallery-grid__add svg {
    width: 32px;
    height: 32px;
    color: #9ca3af;
}

.gallery-grid__add:hover svg {
    color: #f97316;
}

.gallery-grid__add span {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

.gallery-grid__add:hover span {
    color: #ea580c;
}

/* ========================================
   PRAZDNY STAV
   ======================================== */

.gallery-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
}

.gallery-empty__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff7ed;
    border-radius: 50%;
    margin-bottom: 20px;
}

.gallery-empty__icon svg {
    width: 40px;
    height: 40px;
    color: #f97316;
}

.gallery-empty__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px 0;
}

.gallery-empty__text {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px 0;
    max-width: 320px;
    line-height: 1.5;
}

.gallery-empty__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.gallery-empty__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.gallery-empty__btn svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   UPLOAD MODAL
   ======================================== */

.upload-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.upload-modal--open {
    display: flex;
}

.upload-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.upload-modal__container {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.upload-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.upload-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.upload-modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.upload-modal__close:hover {
    background-color: #f3f4f6;
}

.upload-modal__close svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.upload-modal__body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* ========================================
   DROPZONE
   ======================================== */

.upload-modal__dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 24px;
    background-color: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.upload-modal__dropzone:hover,
.upload-modal__dropzone--active {
    background-color: #fff7ed;
    border-color: #f97316;
}

.upload-modal__dropzone svg {
    width: 48px;
    height: 48px;
    color: #9ca3af;
    margin-bottom: 8px;
}

.upload-modal__dropzone:hover svg,
.upload-modal__dropzone--active svg {
    color: #f97316;
}

.upload-modal__dropzone-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.upload-modal__dropzone-text {
    font-size: 14px;
    color: #6b7280;
}

.upload-modal__dropzone-formats {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 4px;
}

/* ========================================
   UPLOAD PREVIEW
   ======================================== */

.upload-modal__preview {
    margin-top: 20px;
}

.upload-modal__preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.upload-modal__preview-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.upload-modal__preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-modal__preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.upload-modal__preview-remove:hover {
    background-color: #dc2626;
}

.upload-modal__preview-remove svg {
    width: 14px;
    height: 14px;
    color: #ffffff;
}

/* ========================================
   UPLOAD METADATA FORM
   ======================================== */

.upload-modal__metadata {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.upload-modal__metadata-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.upload-modal__metadata-hint {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 16px 0;
}

.upload-modal__metadata-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upload-modal__metadata-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background-color: #f9fafb;
    border-radius: 10px;
}

.upload-modal__metadata-thumb {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #e5e7eb;
}

.upload-modal__metadata-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-modal__metadata-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.upload-modal__metadata-field {
    width: 100%;
}

.upload-modal__metadata-input {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    color: #111827;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.upload-modal__metadata-input:focus {
    outline: none;
    border-color: #f97316;
}

.upload-modal__metadata-input::placeholder {
    color: #9ca3af;
}

.upload-modal__metadata-input--desc {
    font-size: 12px;
}

.upload-modal__metadata-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
}

.upload-modal__metadata-field--dogs {
    flex: 1;
}

.upload-modal__metadata-field--action {
    flex: 1;
}

.upload-modal__metadata-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
}

.upload-modal__metadata-dogs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.upload-modal__meta-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    font-size: 11px;
    color: #374151;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.upload-modal__meta-checkbox:hover {
    border-color: #d1d5db;
}

.upload-modal__meta-checkbox:has(input:checked) {
    background-color: #dbeafe;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.upload-modal__meta-checkbox input {
    display: none;
}

.upload-modal__metadata-select {
    width: 100%;
    padding: 8px 28px 8px 10px;
    font-size: 12px;
    color: #374151;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    background-size: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
}

.upload-modal__metadata-select:focus {
    outline: none;
    border-color: #f97316;
}

.upload-modal__metadata-input--custom {
    margin-top: 6px;
}

/* ========================================
   MODAL FOOTER
   ======================================== */

.upload-modal__footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
}

.upload-modal__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-modal__btn--cancel {
    color: #6b7280;
    background-color: #f3f4f6;
}

.upload-modal__btn--cancel:hover {
    background-color: #e5e7eb;
}

.upload-modal__btn--confirm {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.upload-modal__btn--confirm:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.upload-modal__btn--confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload-modal__btn--confirm svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   EDIT MODAL
   ======================================== */

.edit-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.edit-modal--open {
    display: flex;
}

.edit-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.edit-modal__container {
    position: relative;
    width: 100%;
    max-width: 450px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.edit-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.edit-modal__title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.edit-modal__close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.edit-modal__close:hover {
    background-color: #f3f4f6;
}

.edit-modal__close svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.edit-modal__body {
    padding: 20px;
}

.edit-modal__field {
    margin-bottom: 16px;
}

.edit-modal__field:last-child {
    margin-bottom: 0;
}

.edit-modal__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.edit-modal__input,
.edit-modal__textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    color: #111827;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.edit-modal__input:focus,
.edit-modal__textarea:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
    background-color: #ffffff;
}

.edit-modal__textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.5;
}

.edit-modal__footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
}

.edit-modal__btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-modal__btn--cancel {
    color: #6b7280;
    background-color: #f3f4f6;
}

.edit-modal__btn--cancel:hover {
    background-color: #e5e7eb;
}

.edit-modal__btn--confirm {
    color: #ffffff;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.edit-modal__btn--confirm:hover {
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* Edit modal - checkboxy a select */
.edit-modal__checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.edit-modal__checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 13px;
    color: #374151;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.edit-modal__checkbox:hover {
    border-color: #d1d5db;
}

.edit-modal__checkbox:has(input:checked) {
    background-color: #dbeafe;
    border-color: #3b82f6;
    color: #1d4ed8;
}

.edit-modal__checkbox input {
    display: none;
}

.edit-modal__checkbox-mark {
    display: none;
}

.edit-modal__checkbox-label {
    font-weight: 500;
}

.edit-modal__select {
    width: 100%;
    padding: 10px 36px 10px 14px;
    font-size: 14px;
    color: #374151;
    background-color: #f9fafb;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    appearance: none;
    transition: border-color 0.2s ease;
}

.edit-modal__select:focus {
    outline: none;
    border-color: #f97316;
    background-color: #ffffff;
}

.edit-modal__action-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edit-modal__input--custom {
    margin-top: 0;
}

/* ========================================
   TABLET (768px+)
   ======================================== */

@media (min-width: 768px) {
    .gallery-page__header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .gallery-page__header-left {
        flex-direction: row;
        align-items: baseline;
        gap: 12px;
    }

    .gallery-page__title {
        font-size: 24px;
    }

    .gallery-page__upload-btn {
        padding: 12px 24px;
    }

    .gallery-page__info {
        margin-bottom: 24px;
    }

    /* Filtry - tablet */
    .gallery-page__filters {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 16px;
        gap: 16px;
    }

    .gallery-page__filter-row {
        flex: 1;
        min-width: 200px;
    }

    .gallery-page__filter-row--year {
        flex: 0 0 auto;
        min-width: auto;
        padding-top: 0;
        border-top: none;
        padding-left: 16px;
        border-left: 1px solid #e5e7eb;
    }

    .gallery-page__filter-tag {
        padding: 7px 14px;
        font-size: 13px;
    }

    /* Metadata v uploadu - tablet */
    .upload-modal__metadata-row {
        flex-direction: row;
        gap: 12px;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .gallery-grid__placeholder svg {
        width: 40px;
        height: 40px;
    }

    .gallery-grid__placeholder span {
        font-size: 12px;
    }

    .gallery-grid__info {
        padding: 12px 14px;
    }

    .gallery-grid__title {
        font-size: 13px;
    }

    .gallery-grid__date {
        font-size: 12px;
    }

    .gallery-empty {
        padding: 64px 32px;
    }

    .gallery-empty__icon {
        width: 100px;
        height: 100px;
    }

    .gallery-empty__icon svg {
        width: 50px;
        height: 50px;
    }

    .gallery-empty__title {
        font-size: 20px;
    }

    .gallery-empty__text {
        font-size: 15px;
    }

    .upload-modal__container {
        max-width: 550px;
    }

    .upload-modal__preview-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========================================
   DESKTOP (1024px+)
   ======================================== */

@media (min-width: 1024px) {
    .gallery-page__header {
        margin-bottom: 20px;
    }

    .gallery-page__title {
        font-size: 26px;
    }

    .gallery-page__info {
        padding: 14px 18px;
        font-size: 14px;
    }

    /* Filtry - desktop */
    .gallery-page__filters {
        padding: 18px 20px;
        gap: 20px;
        margin-bottom: 24px;
        border-radius: 14px;
    }

    .gallery-page__filter-label {
        font-size: 13px;
        min-width: 50px;
    }

    .gallery-page__filter-tags {
        gap: 8px;
    }

    .gallery-page__filter-select {
        padding: 9px 36px 9px 14px;
        font-size: 13px;
    }

    /* Tagy pod fotkou - desktop */
    .gallery-grid__tags {
        gap: 6px;
        margin-bottom: 6px;
    }

    .gallery-grid__tag {
        padding: 3px 8px;
        font-size: 11px;
    }

    .gallery-grid__desc {
        font-size: 12px;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .gallery-grid__item {
        border-radius: 14px;
    }

    .gallery-grid__drag-handle {
        width: 32px;
        height: 32px;
    }

    .gallery-grid__drag-handle svg {
        width: 16px;
        height: 16px;
    }

    .gallery-grid__action {
        width: 40px;
        height: 40px;
    }

    .gallery-grid__action svg {
        width: 20px;
        height: 20px;
    }

    .gallery-grid__info {
        padding: 14px 16px;
    }

    .gallery-grid__title {
        font-size: 14px;
    }

    .gallery-grid__add {
        border-radius: 14px;
    }

    .gallery-grid__add svg {
        width: 40px;
        height: 40px;
    }

    .gallery-grid__add span {
        font-size: 13px;
    }

    .gallery-empty {
        padding: 80px 40px;
        border-radius: 20px;
    }

    .upload-modal__container {
        max-width: 600px;
    }

    .upload-modal__dropzone {
        padding: 60px 32px;
    }

    .upload-modal__dropzone svg {
        width: 56px;
        height: 56px;
    }

    .upload-modal__footer {
        justify-content: flex-end;
    }

    .upload-modal__btn {
        flex: none;
        min-width: 140px;
    }

    .edit-modal__footer {
        justify-content: flex-end;
    }

    .edit-modal__btn {
        flex: none;
        min-width: 130px;
    }
}

/* ========================================
   VELKY DESKTOP (1400px+)
   ======================================== */

@media (min-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }

    .gallery-grid__item {
        border-radius: 16px;
    }

    .gallery-grid__add {
        border-radius: 16px;
    }
}
