@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.detail-1-description ul,
.detail-1-description ol,
.grid-item-text ul,
.grid-item-text ol {
    padding-left: 0;
    margin: 0;
    list-style-position: inside;
}

.detail-layout-1 {
    width: 100%;
}

.detail-1-content-wrapper {
    display: flex;
    padding: var(--space-80);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-48);
    align-self: stretch;
    box-sizing: border-box;
    background-color: transparent;
}

.detail-1-inner-container {
    margin: 0 auto;
    text-align: start;
    max-width: 900px;
}

.detail-1-title {
    margin-bottom: 24px;
    text-align: center;
    animation: fadeInUp 1.5s ease-out;
}

.detail-1-description {
    margin-bottom: 48px;
    display: block;             
    max-width: fit-content;    
    margin-left: auto;         
    margin-right: auto;       
    animation: fadeInUp 1.5s ease-out;
}

.detail-1-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: start;
    margin-top: 40px;
}

.grid-item-title {
    margin-bottom: 8px;
    text-align: center;
    animation: fadeInUp 1.5s ease-out;
}

.grid-item-text {
    color: #000000;
    animation: fadeInUp 1.5s ease-out;
}

.detail-1-media-full {
    width: 100%;
    height: 685px;
    animation: fadeIn 4s ease-out;
}

.detail-1-media-full img,
.detail-1-media-full video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-1-title:empty,
.detail-1-description:empty,
.grid-item-title:empty,
.grid-item-text:empty,
.detail-1-grid:empty,
.detail-1-media-full:empty,
.video-custom-container:empty {
    display: none !important;
}

.detail-layout-1 *:empty {
    margin: 0 !important;
    padding: 0 !important;
}

.detail-1-media-full .video-custom-container {
    height: 100%;
}

.detail-1-media-full .video-full-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    padding-bottom: 0;
}

.detail-1-media-full .video-full-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

.detail-1-content-wrapper:not(:has(.detail-1-grid)) {
    padding-bottom: 0 !important;
}

@media (min-width: 768px) and (max-width: 1024.98px) {
    .detail-1-content-wrapper {
        height: auto !important;
        padding: var(--space-80) var(--space-24) !important;
        justify-content: flex-start !important;
    }

    .detail-1-inner-container {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: start !important;
    }

    .detail-1-title {
        width: 100% !important;
        margin-bottom: 24px !important;
        text-align: center !important;
    }

    .detail-1-description {
        max-width: 720px !important;
        margin-bottom: 48px !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .detail-1-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 48px 24px !important;
        margin-top: 0 !important;
        
    }

    .detail-1-grid {
        width: 100% !important;
    }


    .grid-item {
        display: flex !important;
        flex-direction: column !important;
    }

    .grid-item-title {
        margin-bottom: 8px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-align: center !important;
    }

    .grid-item-text {
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .detail-1-media-full {
        height: 365px !important;
    }
}

.detail-1-inner-container:not(:has(.detail-1-description)):not(:has(.detail-1-grid)) .detail-1-title {
    margin-bottom: 16px !important;
}

@media (max-width: 767.98px) {
    .detail-1-content-wrapper {
        height: auto !important;
        padding: var(--space-48) var(--space-16) !important;
        justify-content: flex-start !important;
    }

    .detail-1-media-full .video-custom-container {
        height: 100%;
        position: relative;
    }
    
    .detail-1-media-full .video-custom-poster {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        z-index: 2;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .detail-1-media-full .video-full-wrapper {
        width: 100% !important;
        height: 100% !important;
        padding-bottom: 0 !important;
    }

    .detail-1-title {
        margin-bottom: 12px !important;
        text-align: center !important;
        max-width: 370px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .detail-1-description {
        max-width: 370px !important;
        margin-bottom: 48px !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .detail-1-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px 16px !important;
        margin-top: 0 !important;
        margin-bottom: 40px !important;
    }

    .grid-item {
        display: flex !important;
        flex-direction: column !important;
    }

    .grid-item-title {
        margin-bottom: 8px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        text-align: center !important;
    }

    .grid-item-text {
        display: -webkit-box !important;
        -webkit-line-clamp: 3 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .detail-1-inner-container {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: start !important;
    }

    .detail-1-grid {
        width: 100% !important;
    }

    .detail-1-media-full {
        height: 200px !important;
        order: 2 !important;
        width: 100% !important;
        position: relative;
    }
}