
.hero {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.fade-box {
    opacity: 0;
    animation: fadeAndMoveLeft 4s ease-in-out forwards;
    /*{#background: rgba(30, 30, 30, 0.6);#} */
    color: white;
    padding: 1em 2em;
    border-radius: 10px;
    width: fit-content;
    position: absolute;
    text-align: center;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    height: fit-content;
    box-sizing: border-box;
    margin: 0;
    font-size: 2.5rem;
}

@media (max-width: 768px) {
    .fade-box {
        animation: fadeAndMoveDown 1.5s ease-out forwards;
    }
}


.logo {
    width: 30rem;
    height: auto;
    animation: shrinkImage 4s ease-in-out forwards;
    opacity: 0;
}


.navbar {
    position: absolute;
    width: 100%;
    bottom: -100%;
    animation: slideUpNav 3.5s ease-in-out forwards;
    z-index: 1;
    opacity: 80%;
    background: #F2F2F2;
    /*{#padding: 1rem 0;#}*/
}

.navbar-nav .nav-link {
    color: #F2F2F2 !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #537373 !important;
}

/* Medium screen specific styles */
@media (min-width: 768px) and (max-width: 1100px) {
    .navbar-collapse {
        padding-right: 1.5rem;
        justify-content: flex-end !important;
    }
}

.content-wrapper {
    position: relative;
    background: #E4F2F1;
    z-index: 1;
}


@keyframes slideUpNav {
    to {
        bottom: 0;
    }
}

@keyframes fadeAndMoveLeft {
    0% {
        opacity: 0;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    20% {
        opacity: 1;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    30% {
        opacity: 1;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    100% {
        opacity: 1;
        left: 0.25rem;
        top: calc(100% - 24rem);
        transform: translate(0, 0);
    }
}

@keyframes fadeAndMoveDown {
    0% {
        opacity: 0;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    20% {
        opacity: 1;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    30% {
        opacity: 1;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    100% {
        opacity: 1;
        left: calc(50%);
        top: calc(100% - 24rem);
        transform: translate(-50%, 0);
    }
}

@keyframes shrinkImage {
    30% {
        width: 40rem;
        height: auto;
        opacity: 1;
    }
    100% {
        width: 20rem;
        height: auto;
        opacity: 1;
    }
}

.about-us {
    background: #F2F2F2;
}
/* galery scroll*/
.scroll-container {
    overflow-x: auto;
    white-space: nowrap;
    scroll-behavior: smooth;
    background: #F2F2F2;
    /*{#scrollbar-width: thin;#}*/
}

.scroll-content {
    display: flex;
    /*{#gap: 10px;#}*/
    overflow-x: auto;
    scroll-behavior: smooth;
    /*{#scrollbar-width: none;#}*/
    -ms-overflow-style: none;
}


.django_ckeditor_5 {
    width: 100% !important;
}

.ck.ck-editor {
    width: 100% !important;
}

.ck-editor__editable {
    min-height: 400px !important;
    max-height: 600px !important;
}

.ck.ck-editor__main > .ck-editor__editable {
    background: white;
}

.ck.ck-toolbar {
    background: #f8f9fa;
    border: 1px solid #ced4da;
}

.modal-dialog {
    max-width: 800px;
}

.modal-body {
    padding: 20px;
}


/* Contact Section Styles */
.contact-section {
    padding: 5rem 0;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 600;
}

/* Contact Info Card */
.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-list i {
    margin-right: 1rem;
    color: #4a4a4a;
    width: 24px;
}

/* Email Container */
.email-container {
    display: flex;
    align-items: center;
}

.copy-button {
    background: none;
    border: none;
    padding: 0.5rem;
    margin-left: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.copy-button:hover {
    color: #007bff;
}

/* Social Links Grid */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem;
}

.social-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #4a4a4a;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.social-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: #007bff;
}

.social-item i {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        margin-bottom: 2rem;
    }
}

    /*galery detail*/
    .artwork-carousel {
        background-color: var(--bs-dark);
        height: 100vh;
        overflow: hidden;
        position: relative;
    }

    .artwork-container {
        height: 100vh;
        position: relative;
    }

    .artwork-media {
        height: 100%;
        width: 100%;
        position: relative;
    }

    .artwork-media img {
        width: 100%;
        height: 100vh;
        object-fit: contain;
        background-color: var(--bs-dark);
    }

    .artwork-media .ratio {
        height: 100vh;
    }

    .artwork-info {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        padding: 0.75rem;
        color: var(--bs-light);
        background-color: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(5px);
        width: fit-content;
        min-width: 200px; /* Minimum width to prevent too narrow boxes */
        /*{#max-width: 90%; !* Maximum width to prevent overflow on small screens *!#}*/
        text-align: center;
        border-radius: 8px 8px 0 0;
    }

    .artwork-info h3 {
        margin-bottom: 0.4rem;
        white-space: nowrap;
    }

    .artwork-info p {
        margin-bottom: 0.3rem;
    }


    .gallery-carousel-item {
        height: 100vh;
    }

    .back-button {
        position: absolute;
        top: 1rem;
        left: 1rem;
        z-index: 1050;
        background-color: rgba(33, 37, 41, 0.75);
        backdrop-filter: blur(5px);
    }


    .admin-controls {
        position: absolute;
        top: 1rem;
        right: 1rem;
        z-index: 1050;
    }
    /*GALERY*/
    .image-container {
        position: relative;
        display: inline-block;
    }

    .image-container img {
        width: 100%; /* Obrázek vyplní rodiče na šířku */
        height: 100%; /* Obrázek vyplní rodiče na výšku */
        object-fit: cover; /* Zachová poměr stran a ořízne přebytek */
        object-position: center; /* Zarovná střed obrázku */
    }

    .hover-text {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.6); /* Poloprůhledné pozadí */
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        opacity: 0; /* Výchozí skrytí */
        transition: opacity 0.3s ease-in-out;
    }

    .image-container:hover .hover-text {
        opacity: 1; /* Zobrazí text při hoveru */
    }
