.mamut-gallery-form label{display:block;font-weight:700;margin:0 0 8px;color:#e7a32a}
.mamut-gallery-form input[type=text],
.mamut-gallery-form input[type=date],
.mamut-gallery-form textarea,
.mamut-gallery-form select{width:100%;max-width:900px;padding:12px;border:1px solid #66737c;background:#f5f5f5;color:#222}
.mamut-gallery-form textarea{min-height:140px}
.mamut-gallery-form button{background:#e7a32a;color:#111;padding:12px 18px;border:0;cursor:pointer}
.mamut-existing-images,
.mamut-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: flex-start;
}

.single-gallery-grid a {
    display: flex;
    align-items: flex-start;
}

.single-gallery-grid img {
    height: 240px;
    width: auto;
    max-width: 100%;
    display: block;
    border-radius: 6px;
}
}
.mamut-galeria-single .entry-title,.mamut-galeria-archive .page-title,.mamut-gallery-card h2{color:#e7a32a}
.mamut-galeria-meta,.mamut-galeria-intro,.mamut-galeria-udaje,.mamut-gallery-card-author,.mamut-my-gallery-item{color:#fff}
.mamut-galeria-meta{display:flex;gap:18px;margin-bottom:20px;flex-wrap:wrap}
.mamut-gallery-card a{text-decoration:none}
.mamut-galeria-udaje{margin-top:20px}
.mamut-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
    z-index: 99999;
}

.mamut-lightbox-overlay.is-open {
    display: flex;
}

.mamut-lightbox-content {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mamut-lightbox-overlay img {
    max-width: 92vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    display: block;
}

.mamut-lightbox-caption {
    margin-top: 14px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
}

.mamut-lightbox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.mamut-lightbox-nav {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 20px;
}

.mamut-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 768px) {
    .mamut-lightbox-overlay {
        padding: 16px;
    }

    .mamut-lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 24px;
        margin: 0 8px;
    }

    .mamut-lightbox-caption {
        font-size: 16px;
    }
}
.mamut-my-galleries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.mamut-my-gallery-card {
    background: #1D272E;
    border-radius: 8px;
    padding: 16px;
}

.mamut-my-gallery-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    margin-bottom: 12px;
}

.mamut-my-gallery-title {
    margin: 0 0 12px;
    font-size: 22px;
}

.mamut-my-gallery-title a {
    color: #E7A32A;
    text-decoration: none;
}

.mamut-my-gallery-actions a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 14px;
    font-weight: 600;
}

.mamut-my-gallery-actions a:hover {
    color: #E7A32A;
}

.mamut-my-gallery-actions a.mamut-gallery-delete {
    color: #ff8f8f;
}

.mamut-my-gallery-actions a.mamut-gallery-delete:hover {
    color: #ff4d4d;
}

.mamut-author-galleries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.mamut-author-galleries .mamut-gallery-card {
    background: #1D272E;
    border-radius: 8px;
    padding: 14px;
}

.mamut-author-galleries .mamut-gallery-card a {
    text-decoration: none;
}

.mamut-author-galleries .mamut-gallery-card a {
    display: block;
    text-decoration: none;
}

/*.mamut-author-galleries .mamut-gallery-card a:has(img) {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #162029;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
}*/

.mamut-author-galleries .mamut-gallery-card {
    background: #1d272e;
    border-radius: 8px;
    padding: 14px;
}

/*.mamut-gallery-thumb {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #162029;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    text-decoration: none;
}

.mamut-gallery-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: contain;
}*/

/*.mamut-gallery-thumb {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    text-decoration: none;
}*/

.mamut-gallery-thumb img,
.mamut-author-galleries .mamut-gallery-card .mamut-gallery-thumb img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block;
    object-fit: contain !important;
    margin: 0 auto;
}


.uwp_widget_profile .mamut-author-galleries .mamut-gallery-card {
    background: #1d272e !important;
}

.uwp_widget_profile .mamut-author-galleries .mamut-gallery-thumb {
    width: 100%;
    height: 200px;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: #1d272e !important;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 12px;
    text-decoration: none;
    padding: 0 !important;
}

.uwp_widget_profile .mamut-author-galleries .mamut-gallery-thumb img {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
}

.mamut-gallery-title-link {
    display: block;
    text-decoration: none;
}

.mamut-gallery-title {
    margin: 0;
    font-size: 22px;
    color: #e7a32a;
    line-height: 1.2;
}

/*.mamut-author-galleries .mamut-gallery-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: contain;
}
*/

/*.mamut-author-galleries .mamut-gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    margin-bottom: 12px;
}
*/

.mamut-author-galleries .mamut-gallery-card h3,
.mamut-author-galleries .mamut-gallery-card h2 {
    margin: 0;
    font-size: 22px;
    color: #E7A32A;
}

.mamut-author-galleries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 24px;
    margin-top: 24px;
}

.mamut-author-galleries .mamut-gallery-card {
    background: #1D272E;
    border-radius: 8px;
    padding: 14px;
    width: 100%;
}

.mamut-author-galleries .mamut-gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
    margin-bottom: 12px;
}

.mamut-author-galleries .mamut-gallery-card h3,
.mamut-author-galleries .mamut-gallery-card h2 {
    margin: 0;
    font-size: 22px;
    color: #E7A32A;
}

.mamut-add-gallery-button {
    display: inline-block;
    background: #E7A32A;
    color: #000000;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    margin: 0 0 18px;
}

.mamut-add-gallery-button:hover,
.mamut-add-gallery-button:visited,
.mamut-add-gallery-button:active {
    color: #000000;
    text-decoration: none;
    opacity: 0.9;
}

.mamut-add-gallery-button:hover {
    color: #111;
    opacity: 0.9;
}

.mamut-author-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    gap: 24px;
    margin-top: 24px;
}

.mamut-author-posts .mamut-post-card a {
    display: block;
    text-decoration: none;
}

.mamut-post-title-link {
    display: block;
    text-decoration: none;
}

.mamut-post-thumb {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: #162029;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
}

.mamut-post-thumb img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 6px;
}

.mamut-post-card a {
    display: block;
    text-decoration: none;
}


.mamut-post-card h3 {
    margin: 0;
    font-size: 22px;
    color: #E7A32A;
}

.mamut-post-card a:hover h3,
.mamut-post-card a:visited h3,
.mamut-post-card a:active h3 {
    color: #E7A32A;
}

.mamut-add-post-button {
    display: inline-block;
    background: #E7A32A;
    color: #000000 !important;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    margin: 0 0 18px;
}

.mamut-add-post-button:hover,
.mamut-add-post-button:visited,
.mamut-add-post-button:active {
    color: #000000 !important;
    text-decoration: none;
    opacity: 0.9;
}

.mamut-post-form label {
    display: block;
    font-weight: 700;
    margin: 0 0 8px;
    color: #E7A32A;
}

.mamut-post-form input[type=text],
.mamut-post-form input[type=file],
.mamut-post-form textarea,
.mamut-post-form select {
    width: 100%;
    max-width: 900px;
    padding: 12px;
    border: 1px solid #66737c;
    background: #f5f5f5;
    color: #222;
}

.mamut-post-form textarea {
    min-height: 220px;
}

.mamut-post-form button {
    background: #E7A32A;
    color: #111;
    padding: 12px 18px;
    border: 0;
    cursor: pointer;
}
/* menší ilustračný obrázok v detaile článku */
.single-post .post-thumb img,
.single-post .entry-content > img,
.single-post .wp-post-image {
    max-width: 500px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 0 24px;
    border-radius: 6px;
}

/* galéria obrázkov vložená pod článok */
.mamut-post-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
}

.mamut-post-gallery a {
    display: block;
}

.mamut-post-gallery img {
    height: 180px;
    width: auto;
    max-width: 100%;
    display: block;
    border-radius: 6px;
}

.mamut-post-actions {
    margin-top: 12px;
}

.mamut-post-actions a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 14px;
    font-weight: 600;
}

.mamut-post-actions a:hover {
    color: #E7A32A;
}

.mamut-post-actions a.mamut-post-delete {
    color: #ff9a9a;
}

.mamut-post-actions a.mamut-post-delete:hover {
    color: #ff4d4d;
}

.mamut-post-actions {
    margin-top: 12px;
}

.mamut-post-actions a {
    color: #ffffff;
    text-decoration: none;
    margin-right: 14px;
    font-weight: 600;
}

.mamut-post-actions a:hover {
    color: #E7A32A;
}

.mamut-post-actions a.mamut-post-delete {
    color: #ff9a9a;
}

.mamut-post-actions a.mamut-post-delete:hover {
    color: #ff4d4d;
}

.mamut-post-actions a.mamut-post-edit {
    color: #ffffff;
}

.mamut-post-actions a.mamut-post-edit:hover {
    color: #E7A32A;
}

.single-galeria .site-content .ast-container,
.single-galeria .entry-content,
.single-galeria article,
.single-galeria .site-main {
    max-width: 1200px;
    width: 100%;
}

.single-gallery-grid,
.mamut-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    width: 100%;
}

.mamut-galeria-actions {
    margin-top: 10px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mamut-galeria-action {
    font-size: 14px;
    text-decoration: none;
}

.mamut-delete-gallery {
    color: #d9534f;
}

.mamut-gallery-form input[type="text"],
.mamut-gallery-form input[type="date"],
.mamut-gallery-form input[type="email"],
.mamut-gallery-form input[type="url"],
.mamut-gallery-form input[type="number"],
.mamut-gallery-form input[type="password"],
.mamut-gallery-form input[type="search"],
.mamut-gallery-form input[type="tel"],
.mamut-gallery-form textarea,
.mamut-gallery-form select {
    background: #223544;
    color: #f2f2f2;
    border: 1px solid #3b4f5d;
}

.mamut-gallery-form input[type="text"]::placeholder,
.mamut-gallery-form textarea::placeholder {
    color: #b8c2cc;
}