div#photo_dialog_background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

div#photo_pos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    font-family: system-ui, -apple-system, sans-serif;
}

div#photo_dialog_area {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background-color: transparent;
}

h1#photo_title_area {}

div#photo_description_area {
    position: absolute;
    top: 15px;
    left: 70px;
    max-width: 50%;
    height: 40px;
    line-height: 40px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 25;
}

div#photo_counter_area {
    color: #fff;
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 0.5px;
    z-index: 25;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

div#photo_close_area {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 30;
    display: flex;
    gap: 8px;
    align-items: center;
}

#photo_close_area a {
    position: relative;
    float: none;
    text-decoration: none;
    opacity: 0.8;
    background-image: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.2s ease;
}

#photo_close_area a:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
}

div#photo_pred_area,
div#photo_next_area {
    z-index: 24;
    position: absolute;
    top: 0px;
    width: 10%;
    height: 100%;
}

div#photo_pred_area {left: 0;}
div#photo_next_area {right: 0;}

a.photo_pred, a.photo_next {
    background-image: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    opacity: 0.7;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.2s ease;
}

a.photo_pred {
    left: 20px;
}
a.photo_pred::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(-45deg);
    margin-left: 4px;
}
a.photo_pred:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

a.photo_next {
    right: 20px;
}
a.photo_next::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin-right: 4px;
}
a.photo_next:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Vytvoření CSS vektorových ikonek místo chybějících PNG obrázků */
a.photo_closeButton::before,
a.photo_closeButton::after,
a.photo_slideshowPlayButton::before,
a.photo_slideshowPauseButton::before,
a.photo_downloadButton::after,
a.photo_downloadButton::before,
a.photo_fullSizeButton::before
 {
	position: absolute;
	top: 14px;
	left: 14px;
	line-height: 1;
	font-size: 16px;
	content: "";
	display: block;
}
a.photo_closeButton::before,
a.photo_closeButton::after{
	left:50%;
	top:50%;
	width:14px;
	height:3px;
	background:#fff;
	border-radius:2px;
}
a.photo_closeButton::before{
	transform:translate(-50%,-50%) rotate(45deg);
}
a.photo_closeButton::after{
	transform:translate(-50%,-50%) rotate(-45deg);
}
a.photo_slideshowPlayButton::before {
    width: 0;
    height: 0;
    left: 16px;
    border-style: solid;
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent #fff;
}
a.photo_slideshowPauseButton::before {
    width: 6px;
    height: 12px;
    border-left: 3px solid #fff;
    border-right: 3px solid #fff;
}
a.photo_downloadButton::before {
    width: 10px;
    height: 10px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    top: 13px;
}
a.photo_downloadButton::after {
    width: 2px;
    height: 10px;
    background-color: #fff;
    left: 19px;
    top: 15px;
}

a.photo_fullSizeButton::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 1px;
    box-sizing: border-box;
}

div#photo_image_area {
    position: relative;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

div#photo_image_area div {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
}

img#photo_loader {
    display: block;
    position: absolute;
    margin: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    filter: invert(1);
}

img#photo_image {
    display: none;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.lb {
    cursor: pointer;
}

@media(max-height:600px) {
    div#photo_dialog_area {
        margin-top: 0;
    }
}
@media(max-height:530px) {
    div#photo_image_area {
        top: 0;
        padding: 40px 50px;
    }
}