/*
* FooGallery Custom CSS
* This file is created by adding custom CSS on FooGallery Settings page in wp-admin
* Created : 26 Nov 2025, 8:37 pm
*/

.fg-light .fg-lightbox-button,
.fg-light .fg-panel-button,
.fg-light .fg-panel-thumbs-button {
    width: 48px !important;
    height: 48px !important;
    background-size: contain !important;
}

.fg-panel-info-toggle {
    display: none;
}


.fg-light :is(.fg-lightbox-button, .fg-panel-button, .fg-panel-thumbs-button) svg {
    width: 24px !important;
    height: 24px !important;
}

.fg-panel.fg-light :is(
  .fg-panel-button,
  .fg-panel-thumbs-button,
  .fg-panel-thumb,
  .fg-panel-thumb-spacer
),
.fg-panel.fg-light:is(.fg-medium, .fg-panel-no-mobile) .fg-panel-cart-inner,
.fg-panel.fg-light:is(.fg-medium, .fg-panel-no-mobile):not(.fg-panel-info-overlay) .fg-panel-info-inner {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: auto;
}

.fg-panel.fg-dark .fg-panel-button[aria-pressed="true"],
.fg-panel.fg-light :is(.fg-panel-button, .fg-panel-area-toggle, .fg-panel-thumbs-button) {
    opacity: 0.9 !important;
}

.fg-light.fg-lightbox-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
}

.fg-panel-thumbs {
    height: auto;
}

.fg-panel-thumb {
    max-height: 100px !important;
    max-width: 120px !important;
    overflow: hidden;
    object-fit: cover;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.fg-panel-thumb:hover,
.fg-panel-thumb.fg-selected {
    opacity: 1;
}

.fg-panel-thumb img {
    height: 100% !important;
    width: auto !important;
    max-height: 160px !important;
    object-fit: cover;
    display: block;
}

.fg-panel-thumbs-inner,
.fg-panel-thumb-stage,
.fg-panel-thumbs-viewport {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    gap: 24px;
}

.fg-panel-thumbs-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    margin: 0 auto;
    text-align: center;
}

.fg-panel-thumbs-viewport .fg-panel-thumbs-stage {
    width: max-content;
    max-width: 100%;
    gap: 24px;
}

.fg-panel-thumbs-stage .fg-panel-thumb-spacer {
    display: none;
}

.fg-medium:is(.fg-panel-thumbs-left,.fg-panel-thumbs-right) .fg-panel-thumb,
.fg-medium:is(.fg-panel-thumbs-top,.fg-panel-thumbs-bottom) .fg-panel-thumbs-inner {
    height: 100%;
}

.fg-panel.fg-medium.fg-panel-thumbs-small .fg-panel-thumb-media,
.fg-panel.fg-medium.fg-x-large-width.fg-panel-thumbs-small .fg-panel-thumb-media {
    width: 100%;
    min-width: 140px;
    border-radius: 4px;
}

.fg-panel.fg-medium .fg-panel-thumb-media {
    width: 108px;
    min-width: 108px;
    height: 100%;
    min-height: 120px;
}

.fg-panel.fg-light,
.fg-panel.fg-light .fg-panel-thumb:is(.fg-idle,.fg-loading,.fg-error) .fg-panel-thumb-media {
    background-color: var(--theme-palette-color-6);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    transition: all .3s ease;
    box-sizing: border-box;
}

.fg-lightbox-overlay .fg-panel {
  max-width: none !important;
  max-height: none !important;
  width: 96vw !important;
  margin: 2vh 2vw !important; /* schmale Ränder */
}

.fg-landscape.fg-panel-buttons-right .fg-panel-area {
    flex-direction: row;
     width: clamp(calc(100% - 80px), 95vh, 100vw) !important;
}

.fg-landscape.fg-panel-buttons-right .fg-panel-content {
    height: calc(100% - 120px);
    min-height:  calc(90vh - 50px);
    cursor: move;
}

.fg-panel-info-bottom.fg-panel-info-overlay:is(.fg-medium,.fg-panel-no-mobile) .fg-panel-info-inner {
    flex-direction: column;
    height: auto;
    max-height: none;
}

.fg-panel.fg-light :is(.fg-panel-cart-inner,.fg-panel-info-inner) {
    background: none;
    font-family: var(--theme-font-family-base);
    line-height: 1.6;
}

.fg-panel-info-overlay:is(.fg-medium,.fg-panel-no-mobile) .fg-media-caption {
    font-family: var(--theme-font-family-base);
    line-height: 1.6;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    box-sizing: border-box;
    padding: 12px 32px;
    color: var(--theme-palette-color-6);
    border: none;
}
.fg-panel.fg-panel-info-bottom:is(.fg-medium,.fg-panel-no-mobile) .fg-panel-info-inner {
    border: none;
}

.fg-media-caption-title {
    font-size: 1.25rem;
    padding: 16px 0 0;
    height: auto;
    line-height: 1.5;
    border: none;
}
.fg-media-caption-description {
    font-size: 1rem;
    line-height: 2;
    padding: 0 0 16px;
    height: auto;
}

.fg-medium.fg-panel-thumbs-small:is(.fg-panel-thumbs-left,.fg-panel-thumbs-right) .fg-panel-thumbs-inner, .fg-medium.fg-panel-thumbs-small:is(.fg-panel-thumbs-top,.fg-panel-thumbs-bottom) .fg-panel-thumb, .fg-x-large-width.fg-panel-thumbs-small:is(.fg-panel-thumbs-left,.fg-panel-thumbs-right) .fg-panel-thumbs-inner, .fg-x-large-width.fg-panel-thumbs-small:is(.fg-panel-thumbs-top,.fg-panel-thumbs-bottom) .fg-panel-thumb {
    width: auto;
    min-width: 82px;
}


.fg-panel.fg-dark .fg-panel-button[aria-pressed=true], .fg-panel.fg-light :is(.fg-panel-button,.fg-panel-area-toggle,.fg-panel-thumbs-button) {
    color: var(--theme-palette-color-2);
    transition: all .2s cubic-bezier(0.52, 0.12, 0.25, 1);
}

.fg-panel.fg-dark .fg-panel-button[aria-pressed=true]:hover, .fg-panel.fg-light :is(.fg-panel-button,.fg-panel-area-toggle:hover,.fg-panel-thumbs-button):hover {
    color: var(--theme-palette-color-2);
}

.fg-panel.fg-dark :is(.fg-panel-button,.fg-panel-area-toggle,.fg-panel-thumbs-button), .fg-panel.fg-light .fg-panel-button[aria-pressed=true] {
    color: var(--theme-palette-color-5);
}

.fg-panel.fg-light {cursor: pointer;}

