﻿/* Upload */
.upload-section {
    margin-bottom: 30px;
}

.drop-zone {
    border: 2px dashed #aaa;
    padding: 30px;
    text-align: center;
    background-color: #f9f9f9;
    cursor: pointer;
}

.drop-zone.dragover {
    background-color: #e0f7fa;
    border-color: #00acc1;
}
/* Konec uploadu */

/* Galerie */

/*** default.aspx ***/
/*
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    padding: 30px;
}
*/
.gallery-tile {
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    background: #f9f9f9;
    text-align: center;
    transition: transform 0.2s;
}

.gallery-tile:hover {
    transform: scale(1.02);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.gallery-tile img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.gallery-info {
    padding: 10px;
}

.gallery-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.gallery-date {
    font-size: 0.85em;
    color: #666;
}

/*** gallery.aspx ****/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    padding: 20px;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.thumbnail:hover {
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.thumb-container {
    text-align: center;
}

.thumb-title {
    margin-top: 5px;
    font-size: 0.9em;
    color: #444;
}

/* Konec galerie */

/* Lightbox */

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px #000;
    border-radius: 4px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
    padding: 10px;
    z-index: 10000;
    transition: opacity 0.2s;
}

#lightbox-prev {
    left: 20px;
}

#lightbox-next {
    right: 20px;
}

.lightbox-arrow:hover {
    opacity: 0.7;
}

.lightbox-arrow.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}

#lightbox {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 90vh;
    max-width: 90vw;
    overflow: hidden;
}

.lightbox-caption {
    margin-top: 10px;
    text-align: center;
    color: white;
    font-family: sans-serif;
}

#lightbox-img {
    max-height: 90vh; /* 85vh místo 90% */
    max-width: 100%;
    object-fit: contain;
    background-color: transparent;
}

/* Popisek obrazku */
.lightbox-info-box {
    position: absolute;
    top: 60px; /* pod křížek */
    right: 30px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    max-width: 300px;
    font-family: sans-serif;
    /*z-index: 10001;*/
}

.lightbox-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 4px;
}

.lightbox-description {
    font-size: 0.9rem;
    opacity: 0.85;
    word-wrap: break-word;
}
/* Konec popisku obrazku */

/* Lightbox menu */
.lightbox-topbar {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 10001;
}

.lightbox-close {
    font-size: 2rem;
    color: white;
    cursor: pointer;
    /*z-index: 10001;*/
}

.lightbox-menu-icon {
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    user-select: none;
}

.lightbox-menu-wrapper {
    position: relative;
}

.lightbox-dropdown {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 6px;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 10010; /* musi byt vyssi nez info box */
}

.lightbox-dropdown button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: white;
    padding: 10px 15px;
    text-align: left;
    font-size: 0.95rem;
    cursor: pointer;
}

.lightbox-dropdown button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.lightbox-close,
.lightbox-menu-icon {
    font-size: 2rem;
    color: white;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    line-height: 1;
}

/* Konec lightbox menu */

/* Share box */
.share-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 20px 25px;
    border-radius: 8px;
    z-index: 10002;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    max-width: 90%;
    width: 400px;
    text-align: center;
}

.share-box-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-box label {
    font-size: 0.95rem;
    text-align: left;
}

#share-url {
    width: 100%;
    padding: 8px 10px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    background-color: #fff;
    color: #000;
}

#share-close {
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 0.95rem;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    align-self: center;
}

    #share-close:hover {
        background-color: #666;
    }

.share-url-row {
    display: flex;
    gap: 8px;
}

#share-url {
    flex: 1;
    padding: 8px 10px;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    background-color: #fff;
    color: #000;
}

#copy-url {
    padding: 8px 12px;
    font-size: 0.95rem;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

    #copy-url:hover {
        background-color: #666;
    }

/* Konec Share box */

/* Konec lightbox */