.main-panel {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-grow: 3;
    min-height: 0; 
    height: 100%;
}
.main-panel-title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
}
.main-header-container {
    flex-direction: row;
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.main-header-container .buttons {
    align-content: center;
}
.main-header-container .title {
    align-content: center;
}
.recipe-view-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.main-panel-header {
    padding: 0.5rem 1rem 0.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-direction: column;
    flex-shrink: 0;
}
.recipe-details-content {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}
.recipe-details-content::-webkit-scrollbar {
    width: 8px;
}
.recipe-details-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
.recipe-details-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
.recipe-details-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.main-panel-content {
    flex: 1;
    overflow-y: auto;
    height: 100%;
}
.main-panel-content::-webkit-scrollbar {
    width: 8px;
}
.main-panel-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
.main-panel-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
.main-panel-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
.sidebar {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex-grow: 0;
    flex-shrink: 1;
    margin-right: 2rem;
    min-height: 0;
    height: 100%;
    min-width: 15rem;
}
.sidebar-header {
    display: flex;
    padding: 0.5rem 1rem 0.5rem 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    background: var(--bg-tertiary);
    justify-content: space-between;
    align-items: center;
}
.sidebar-header div {
    display: flex;
    gap: 0.5rem;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height:0;
}
.sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
}
/* RECIPE LIST */
.recipe-list {
    overflow-y: auto;
    min-height: 0;
    flex-grow: 1;
}
.recipe-list::-webkit-scrollbar {
    width: 8px;
}
.recipe-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
.recipe-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
.recipe-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
.recipe-list-content {
    flex: 1;
    min-width: 0;
}
#recipes-view {
    height: 100%;
}
.recipe-list-item {
    display: flex;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    gap: 1rem;
}
.recipe-list-item.active {
    background: var(--bg-tertiary);
}
.recipe-list-item:hover {
    background: var(--bg-tertiary);
}
.recipe-list-title {
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.recipe-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.25rem;
    justify-content: space-between;
}
.recipe-rating .favorite-icon{
    width: 1rem;
    height: 1rem;
    fill: #f74f4f;
}
.recipe-rating .under-construction-icon{
    width: 1rem;
    height: 1rem;
    color: var(--accent);
}
.recipe-rating .shared-icon{
    width: 1rem;
    height: 1rem;
    color: #3b82f6;
    stroke: #3b82f6;
}
.recipe-list-icons {
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
    align-items: center;
}
.recipe-list-icons > div {
    display: flex;
    align-items: center;
}
.recipe-list-categories {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.1rem;
    flex-wrap: wrap;
}
.recipe-list-categories .category-tag {
    font-size: 0.7rem;
    color: grey;
    background: var(--bg-primary);
    padding: 2px 6px;
    border-radius: 5px;
}
.recipe-list-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    gap: 0.8rem;
}
.recipe-list-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
}
.recipe-thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* SEARCH BOX IN RECIPE LIST */

.recipe-list-filterbox{
    display: flex;
    padding: 0.25rem;
    flex-direction: column;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    position: relative;
}
.filter-field {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 0.75rem;
}
.filter-field span {
    color: var(--text-secondary);
}
.filter-field .icon{
    width: 20px;
    height: 20px;
    margin: 0 auto;
    opacity: 0.9;
    fill: white;
}

.recipe-count {
    padding: 0.5rem 0.5rem;
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-align: right;
    margin-left: auto;
    white-space: nowrap;
}

.recipe-list .hidden {
    display: none!important;
}
.recipe-list-filterbox input,
.filter-field input {
    width: 100%;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    color: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
}
.recipe-list-filterbox input:focus,
.filter-field input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
.recipe-list-filterbox select {
    width: 100%;
    padding: 0.25rem;
    background: var(--bg-tertiary);
    color: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    font-size: 0.75rem;
}

/* Recipe Sort Dropdown */
.recipe-sort-container {
    position: relative;
    margin-left: auto;
}

.filter-toggle-button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-left: 0.5rem;
    vertical-align: middle;
}

.filter-toggle-button:hover {
    opacity: 0.7;
}

.filter-toggle-button .chevron-icon {
    color: var(--accent);
    transition: transform 0.2s ease;
}

.filter-toggle-button .chevron-icon.open {
    transform: rotate(180deg);
}

.recipe-sort-button {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.recipe-sort-button:hover {
    border-color: var(--accent);
    background: var(--bg-fourth);
}

.recipe-sort-button .sort-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: white;
    fill: white;
}

.recipe-sort-button .chevron-icon {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: var(--accent);
}

.recipe-sort-button .chevron-icon.open {
    transform: rotate(180deg);
}

/* RECIPE DETAILS */
.recipe-details-gallery-thumbnails {
    margin-top: 2rem;
}

.recipe-gallery-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.recipe-details-gallery-thumbnail {
    width: 128px;
    height: 128px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
    flex-shrink: 0;
    border: 2px solid transparent;
}
.recipe-details-gallery-thumbnail:hover {
    opacity: 1;
    border-color: var(--accent);
    transform: scale(1.1)
}

.recipe-details-stats-container{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    margin-right: auto;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.recipe-meta-container {
    display: flex;
    gap: 1rem;
}
.recipe-meta-item {
    text-align: center;
    padding: 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
}
.metadata-label {
    font-size: 0.625rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}
.metadata-icon {
    width: 20px;
    height: 20px;
    margin: 0 auto;
    opacity: 0.9;
}
.metadata-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.recipe-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 2px;
}
.recipe-section-instruction {
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--content-border-radius);
    font-size: 0.8rem;
}
.recipe-section-instruction ul,
.recipe-section-instruction ol{
    padding-left: 1.5rem;
    list-style-position: outside;
}
.recipe-section-instruction li{
    padding-left: 0.5rem;
    margin-bottom: 0.5rem;
}
.recipe-section-instruction li[data-list="ordered"]{
    list-style-type: decimal;
}
.recipe-section-instruction li[data-list="bullet"]{
    list-style-type: disc;
}

.recipe-two-column-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.recipe-column-left {
    display: flex;
    flex-direction: column;
}

.ingredients-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ingredients-header .recipe-section-title {
    margin-bottom: 0;
}

.ingredients-sort-container {
    position: relative;
}

.ingredients-sort-button {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.5rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.ingredients-sort-button:hover {
    border-color: var(--accent);
    background: var(--bg-fourth);
}

.ingredients-sort-button .sort-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: white;
    fill: white;
}

.ingredients-sort-button .sort-label {
    display: none;
}

.ingredients-sort-button .chevron-icon {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: var(--accent);
}

.ingredients-sort-button .chevron-icon.open {
    transform: rotate(180deg);
}

.sort-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 100;
    min-width: 250px;
    overflow: hidden;
}

.sort-dropdown-item {
    padding: 0.6rem 0.75rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.sort-dropdown-item:last-child {
    border-bottom: none;
}

.sort-dropdown-item:hover {
    background: var(--bg-fourth);
}

.sort-dropdown-item.active {
    background: var(--accent);
    color: white;
    font-weight: 600;
}

.filter-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    overflow: hidden;
}

/* Smooth filter collapse/expand transitions */
.filter-collapse-enter-active,
.filter-collapse-leave-active {
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.filter-collapse-enter-from {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.filter-collapse-enter-to {
    max-height: 200px;
    opacity: 1;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.filter-collapse-leave-from {
    max-height: 200px;
    opacity: 1;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.filter-collapse-leave-to {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.recipe-column-right {
    display: flex;
    flex-direction: column;
}

.ingredients-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ingredient-card {
    border-radius: var(--content-border-radius);
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: var(--bg-tertiary);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.ingredient-card:hover {
    transform: scale(1.025);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.ingredient-card .ingredient-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ingredient-header-left {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.ingredient-expand-arrow {
    flex-shrink: 0;
    transition: transform 0.2s ease;
    color: var(--accent);
}

.ingredient-expand-arrow.expanded {
    transform: rotate(180deg);
}

.ingredient-card .ingredient-name {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.ingredient-card .ingredient-amount {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.625rem;
    font-weight: 500;
    white-space: nowrap;
}

.ingredient-card .ingredient-unit {
    font-weight: 400;
}
.synonyms {
    margin-bottom: 16px;
}

.synonyms-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.synonyms-list {
    font-size: 0.875rem;
    font-style: italic;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    margin-top: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.nutrition-grid.expanded {
    max-height: 500px;
    opacity: 1;
    margin-top: 8px;
}

.nutrition-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 8px;
    background: var(--bg-fourth);
    border-radius: 5px;
    border-left: 4px solid;
}

.nutrition-item.calories {
    border-left-color: #ef4444;
}

.nutrition-item.protein {
    border-left-color: #10b981;
}

.nutrition-item.carbs {
    border-left-color: #f59e0b;
}

.nutrition-item.fat {
    border-left-color: #8b5cf6;
}

.nutrition-item.fiber {
    border-left-color: #059669;
}

.nutrition-label {
    font-size: 0.55rem;
    color: var(--text-primary);
    font-weight: 500;
}

.nutrition-value {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nutrition-summary {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.summary-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);;
    gap: 0.5rem;
    max-width: 500px;
}

.summary-item {
    text-align: center;
    padding: 0.25rem;
    background: var(--bg-tertiary);
    border-radius: var(--content-border-radius);
    border-top: 7px solid;
}

.summary-item.calories {
    border-top-color: #ef4444;
}

.summary-item.protein {
    border-top-color: #10b981;
}

.summary-item.carbs {
    border-top-color: #f59e0b;
}

.summary-item.fat {
    border-top-color: #8b5cf6;
}

.summary-item.fiber {
    border-top-color: #059669;
}

.summary-value {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.summary-label {
    font-size: 0.625rem;
    font-weight: 500;
}

.icon {
    width: 24px;
    height: 24px;
}

/* Recipe List Trash Modal */
.recipe-trash-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.recipe-trash-modal-content {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border);
    min-width: 500px;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.recipe-trash-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.recipe-trash-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.recipe-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.recipe-modal-close svg {
    width: 20px;
    height: 20px;
}

.recipe-modal-close:hover {
    color: var(--text-primary);
}

.recipe-trash-modal-body {
    padding: 1rem 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.recipe-trash-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem 1rem;
}

.recipe-trash-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    min-height: 200px;
}

.recipe-trash-loading img {
    width: 40px;
    height: 40px;
}

.recipe-trash-table {
    width: 100%;
    border-collapse: collapse;
}

.recipe-trash-table th {
    padding: 0.75rem;
    border-bottom: 2px solid var(--accent);
    font-weight: 600;
    color: var(--accent);
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.recipe-trash-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.recipe-trash-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.recipe-btn-restore {
    padding: 0.4rem 0.8rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.recipe-btn-restore:hover {
    background: var(--accent-orange);
    opacity: 0.9;
}

.recipe-btn-delete-permanent {
    padding: 0.4rem 0.8rem;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.recipe-btn-delete-permanent:hover {
    background: #d32f2f;
    opacity: 0.9;
}

.recipe-trash-empty-btn {
    padding: 0.4rem 0.8rem;
    background: var(--accent-red);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.recipe-trash-empty-btn:hover {
    background: #d32f2f;
    opacity: 0.9;
}

/* Photo Viewer Modal */
.photo-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.photo-viewer-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
}

.photo-viewer-content {
    position: relative;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-viewer-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.photo-viewer-close {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.photo-viewer-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.photo-viewer-close:active {
    transform: scale(0.95);
}

.photo-viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.photo-viewer-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

.photo-viewer-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.photo-viewer-prev {
    left: 20px;
}

.photo-viewer-next {
    right: 20px;
}

.photo-viewer-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .photo-viewer-container {
        padding: 20px;
    }

    .photo-viewer-content {
        max-width: calc(100% - 120px);
        max-height: calc(100% - 100px);
        padding: 50px 60px 50px 60px;
    }

    .photo-viewer-image {
        max-height: 100%;
    }

    .photo-viewer-nav {
        width: 44px;
        height: 44px;
    }

    .photo-viewer-prev {
        left: 6px;
    }

    .photo-viewer-next {
        right: 6px;
    }

    .photo-viewer-close {
        top: 6px;
        right: 6px;
        width: 40px;
        height: 40px;
    }

    .photo-viewer-counter {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}
