.header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%
}
.blog-media-banner {
    max-width: 810px;
    margin: 113px auto 40px;
    background: #ffffff;
    padding: 0 16px;
}
.blog-media-banner h1 {
    font-family: Matura MT Script Capitals;
    font-weight: 400;
    font-size: 48px;
    line-height: 100%;
    color: #C50009;
    padding-top: 40px;
    text-align: center;
    margin-bottom: 24px
}
.blog-media-banner p {
    font-weight: 400;
    font-size: 20px;
    line-height: 120%;
    color: #3F3A49;
    margin-bottom: 24px;
    text-align: center;
}
.blog-media-banner .tabs {
    display: flex;
    justify-content: center;
}
.blog-media-banner .tabs .items {
    display: flex;
    align-items: center;
}
.blog-media-banner .tabs .items .item {
    padding: 7px 12px;
    font-weight: 500;
    font-size: 14px;
    line-height: 120%;
    background: #F4F6F6;
    color: #3F3A49;
    border-radius: 8px;
    cursor: pointer;
}
.blog-media-banner .tabs .items .item.active {
    background: #6B748D;
    color: #ffffff;
}
.blog-media-banner .tabs .items .item:not(:last-child) {
    margin-right: 6px;
}
.blog-media-content {
    background: #E1E8E8;
    padding: 40px 120px 80px;
}
.blog-media-content .items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.blog-media-content .items .item {
    width: calc(100% / 3 - 7px);
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #3F3A490F;
    padding: 16px;
}
.blog-media-content .items .item .img-content img  {
    width: 100%;
    height: 235px;
    object-fit: cover;
    border-radius: 6px;
}
.blog-media-content .items .item .header {
    margin-top: 12px;
    margin-bottom: 12px;
}
/* Media Items Styles */
.blog-media-content .items .item.media-item {
    width: 100%;
    margin-bottom: 20px;
}

.media-images-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.media-images-grid .media-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 6px;
}

.media-images-grid .media-image {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.media-images-grid .media-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.media-images-grid .media-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Lightbox */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-lightbox.active .lightbox-overlay {
    opacity: 1;
}

.lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-lightbox.active .lightbox-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.lightbox-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.lightbox-image-container img[src=""] {
    opacity: 0;
}

.lightbox-image-container img:not([src=""]) {
    opacity: 1;
}

.lightbox-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10002;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0.8);
}

.image-lightbox.active .lightbox-close {
    opacity: 1;
    transform: scale(1);
    transition-delay: 0.2s;
}

.image-lightbox.active .lightbox-prev {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    transition-delay: 0.2s;
}

.image-lightbox.active .lightbox-next {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    transition-delay: 0.2s;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-close:active {
    transform: scale(1.05);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 40px;
    line-height: 1;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%) scale(0.8);
}

.lightbox-prev:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.lightbox-prev:active {
    transform: translateY(-50%) scale(1.05);
}

.lightbox-next:active {
    transform: translateY(-50%) scale(1.05);
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    color: white;
    font-size: 16px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    z-index: 10002;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-lightbox.active .lightbox-counter {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0.3s;
}

@media (max-width: 768px) {
    .lightbox-content {
        width: 100%;
        height: 100%;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 32px;
        top: 10px;
        right: 10px;
    }
}

.media-videos {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.media-videos .video-header {
   margin-top: 50px;
    margin-bottom: 24px;
    text-align: center;
}

.media-videos .video-title {
    font-weight: 500;
    font-size: 30px;
    line-height: 120%;
    color: #3F3A49;
    margin-bottom: 8px;
}

.media-videos .video-description {
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    color: #6B748D;
    margin: 0;
}

.media-videos .media-video {
    width: 50%;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 28.125%; /* 16:9 aspect ratio for half width */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
}

.media-videos .media-video iframe,
.media-videos .media-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.blog-media-content .items .item .header .date {
    font-weight: 400;
    font-size: 12px;
    line-height: 120%;
    color: #6B748D;
}
.blog-media-content .items .item .title {
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
    color: #3F3A49;
    margin-bottom: 8px;
}
.blog-media-content .items .item p {
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    color: #6B748D;
}

@media (max-width: 1280px) {
   .blog-media-banner {
       margin-top: 96px;
   }
}

@media (max-width: 1024px) {
   .blog-media-content {
       padding: 40px 32px 80px;
   }
    .blog-media-banner {
        margin-top: 104px;
    }
}

@media  (max-width: 768px) {
    .blog-media-banner {
        margin-top: 77px;
    }
    .blog-media-content {
        padding: 24px 16px 56px;
    }
    .blog-media-content .items .item {
        width: calc(100% / 2 - 7px);
    }
    .media-videos .media-video {
        width: 100%;
        padding-bottom: 56.25%; /* Full width on mobile */
    }
}

@media (max-width: 573px) {
    .blog-media-banner .tabs .items .item {
        width: calc(100% / 3 - 7px);
        text-align: center;
    }
    .blog-media-banner {
        margin-top: 72px;
    }
    .blog-media-banner .tabs .items {
        min-width: 100%;
    }
    .blog-media-content .items .item {
        width: 100%;
    }
    .media-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .media-images-grid .media-image {
        height: 150px;
    }
}

