/*
Theme Name: Magazilla Child
Theme URI: http://cmsmasters.net/magazilla-child/
Author: cmsmasters
Author URI: http://cmsmasters.net/
Description: Magazilla Child Theme
Template: magazilla
Version: 1.0.0
License:
License URI:
Text Domain: magazilla-child
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

body #header .header_mid .logo_wrap {
    width: min(264px, 75vw);
}

body #header .header_mid .logo_wrap a.logo { width: 100%; }

body #header .header_mid .logo_wrap .logo img {
    width: auto;
    max-width: 100%;
    max-height: calc(100% - 16px);
}

.sk-institute-footer-logo {
    box-sizing: border-box;
    display: block;
    width: min(220px, 100%);
    height: auto;
    padding: 7px 9px;
    margin-bottom: 12px;
    border-radius: 3px;
    background: #fff;
}

@media (max-width: 767px) {
    body #header .header_mid .logo_wrap { width: min(216px, 75vw); }
}

.sk-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.sk-gallery-card {
    min-width: 0;
}

.sk-gallery-card .sk-gallery-card-link {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 228px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    isolation: isolate;
    background: #222;
    color: #fff;
    text-decoration: none;
}

.sk-gallery-card-link::after,
.sk-gallery-card img {
    position: absolute;
    inset: 0;
}

.sk-gallery-card-link::after {
    content: "";
    z-index: -1;
    background: linear-gradient(0deg, #000f 0%, #000a 36%, #0000 78%);
}

.sk-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 420ms cubic-bezier(.22,.61,.36,1);
}

.sk-gallery-card-link:hover img,
.sk-gallery-card-link:focus-visible img {
    transform: scale(1.055);
}

.sk-gallery-card-copy {
    padding: 20px;
}

.sk-gallery-card .sk-gallery-card-copy h2 {
    color: #fff;
    font-size: clamp(1.1rem, 2vw, 1.55rem);
    line-height: 1.18;
    margin: 0 0 6px;
    padding: 0;
}

.sk-gallery-card-copy span {
    color: #eee;
    font-size: .88rem;
}

.sk-gallery-card-copy span::before {
    display: inline-block;
    content: "";
    width: 15px;
    height: 2px;
    margin: 0 8px 3px 0;
    background: #f05a57;
}

.single-post .entry-content .wp-block-image img {
    display: block;
    margin-inline: auto;
}

.cmsmasters_archive_type .cmsmasters_archive_item_img_wrap img {
    transition: filter 220ms ease;
}

.cmsmasters_archive_type:hover .cmsmasters_archive_item_img_wrap img {
    filter: brightness(.92);
}

@keyframes sk-enter {
    from { opacity: .72; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
    .sk-motion-enter {
        animation: sk-enter 520ms cubic-bezier(.22,.61,.36,1) both;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sk-gallery-card img {
        transition: none;
    }

    .sk-gallery-card-link:hover img,
    .sk-gallery-card-link:focus-visible img {
        transform: none;
    }
}

@media (max-width: 850px) {
    .sk-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 530px) {
    .sk-gallery-grid { grid-template-columns: 1fr; }
}

.entry .separator img,
.entry .tr-caption-container img {
    max-width: 100%;
    height: auto;
}

.home rs-sbg-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 73%), transparent 72%);
    pointer-events: none;
}

.skedubd-gallery-row .cmsmasters_owl_slider {
    margin: 0;
}

.skedubd-gallery-row .cmsmasters_slider_post_outer {
    padding: 0;
}

.skedubd-gallery-row .cmsmasters_slider_post_img_wrap {
    margin: 0;
}

.skedubd-gallery-row .cmsmasters_slider_post_img_wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.skedubd-gallery-row .cmsmasters_slider_post_img_wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 82%), transparent 68%);
    pointer-events: none;
}

.skedubd-gallery-row .cmsmasters_slider_post_inner {
    position: absolute;
    inset: auto 20px 12px;
    pointer-events: none;
}

.skedubd-gallery-row .cmsmasters_slider_post_inner a {
    pointer-events: auto;
}

.skedubd-gallery-row .cmsmasters_slider_post_date,
.skedubd-gallery-row .cmsmasters_slider_post_title a {
    color: #fff;
}

