/* Base (mobile first) */
/* Base font sizes (mobile first) */
.fs-1 { font-size: 2.5rem !important; }
.fs-2 { font-size: 2rem !important; }
.fs-3 { font-size: 1.75rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-6 { font-size: 1rem !important; }

/* Small devices (≥576px) */
@media (min-width: 576px) {
  .fs-sm-1 { font-size: 2.5rem !important; }
  .fs-sm-2 { font-size: 2rem !important; }
  .fs-sm-3 { font-size: 1.75rem !important; }
  .fs-sm-4 { font-size: 1.5rem !important; }
  .fs-sm-5 { font-size: 1.25rem !important; }
  .fs-sm-6 { font-size: 1rem !important; }
}

/* Medium devices (≥768px) */
@media (min-width: 768px) {
  .fs-md-1 { font-size: 2.5rem !important; }
  .fs-md-2 { font-size: 2rem !important; }
  .fs-md-3 { font-size: 1.75rem !important; }
  .fs-md-4 { font-size: 1.5rem !important; }
  .fs-md-5 { font-size: 1.25rem !important; }
  .fs-md-6 { font-size: 1rem !important; }
}

/* Large devices (≥992px) */
@media (min-width: 992px) {
  .fs-lg-1 { font-size: 2.5rem !important; }
  .fs-lg-2 { font-size: 2rem !important; }
  .fs-lg-3 { font-size: 1.75rem !important; }
  .fs-lg-4 { font-size: 1.5rem !important; }
  .fs-lg-5 { font-size: 1.25rem !important; }
  .fs-lg-6 { font-size: 1rem !important; }
}

/* Extra large (≥1200px) */
@media (min-width: 1200px) {
  .fs-xl-1 { font-size: 2.5rem !important; }
  .fs-xl-2 { font-size: 2rem !important; }
  .fs-xl-3 { font-size: 1.75rem !important; }
  .fs-xl-4 { font-size: 1.5rem !important; }
  .fs-xl-5 { font-size: 1.25rem !important; }
  .fs-xl-6 { font-size: 1rem !important; }
}

/* custom animation css start */
/* Base */
.animate {
  opacity: 0;
  transition: all 0.8s ease;
}

/* Show */
.animate.show {
  opacity: 1;
  transform: none;
}

/* Fade */
.fade { }
.fade-up { transform: translateY(50px); }
.fade-down { transform: translateY(-50px); }
.fade-left { transform: translateX(-50px); }
.fade-right { transform: translateX(50px); }

/* Zoom */
.zoom-in { transform: scale(0.7); }
.zoom-out { transform: scale(1.3); }

/* Slide */
.slide-up { transform: translateY(100px); }
.slide-down { transform: translateY(-100px); }

/* Flip */
.flip-left { transform: rotateY(90deg); }
.flip-right { transform: rotateY(-90deg); }

/* Rotate */
.rotate { transform: rotate(-180deg); }

/* Delay */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }
.delay-4 { transition-delay: 0.7s; }
/* custom animation css end */



.video-container {
		position: relative;
		padding-bottom: 56.25%;
		padding-top: 30px;
		height: 0;
		overflow: hidden;
	}

	.video-container iframe,
	.video-container object,
	.video-container embed {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}
  .logo-bg {
    background: white;
    padding: 3px !important;

    border-radius: 10px;
  }    
.bk-white {
    background: white;
}
.el-notifications{
        background: #f4f0f9;
    padding: 10px;
    border-radius: 10px;
}
@page {
    size: auto !important;
}

@media print {

    .navbar,
    #sidebar {
        display: none;
    }

    .page {
        break-inside: avoid;
    }

    #content {
        background: white;
    }
}

.img-list>img {
    margin: 5px;
    cursor: pointer;
}

.img-list>.active {
    border: solid 3px #0099ff
}

.theadbtn button {
    padding: 3px !important;
    margin-bottom: 3px;
}

.theadbtn select {
    padding: 2px !important;
    margin-bottom: 3px;
}

.activeRow {
    border: solid #0099ff 2px !important;
    box-shadow: rgb(0 153 255) 0px 0px 10px !important;
}

.card {
    margin: 5px;
    box-shadow: rgb(0 0 0) 0px 0px 10px;
}

.card-header {
    background: #09f;
    color: white;
}

.session {
    color: #2F0F0F;
    padding: 5px;
    margin: 5px;
    border-radius: 5px;
}

a {
    text-decoration: none !important;
}

.submenu {
    border-radius: 0px 0px 10px 10px;
    background-color: white !important;
    padding-bottom: 1rem !important;
    padding-top: 1rem !important;
}

.session:hover {
    background: #FFB805 !important;
    text-decoration: none !important;
    color: #2F0F0F !important;
}

.wrapper {
    display: flex;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #222d32;
    color: #fff;
    transition: all 0.3s;
}

#sidebar.active {
    min-width: 92px;
    max-width: 80px;
    text-align: center;
}

#sidebar.active .sidebar-header h3,
#sidebar.active .CTAs {
    display: none;
}

#sidebar.active .sidebar-header strong {
    display: block;
}

#sidebar ul li a {
    color: #ffffff;
    text-align: left;
}

#sidebar.active ul li a {
    padding: 20px 10px;
    text-align: center;
    font-size: 0.85em;
}

#sidebar.active ul li a i {
    margin-right: 0;
    display: block;
    font-size: 1.8em;
    margin-bottom: 5px;
}

#sidebar.active ul ul a {
    padding: 10px !important;
}

#sidebar.active .dropdown-toggle::after {
    top: auto;
    bottom: 10px;
    right: 50%;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
}

#sidebar .sidebar-header {
    padding: 20px;
    background: #6d7fcc;
}

#sidebar .sidebar-header strong {
    display: none;
    font-size: 1.0em;
}

#sidebar .sidebar-header h3 {
    font-size: 20px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}

#sidebar ul li a:hover {
    color: #7386D5;
    background: #fff;
}

#sidebar ul li a i {
    margin-right: 10px;
    font-size: 2rem;
}

#sidebar ul li.active>a,
#sidebar a[aria-expanded="true"] {
    color: #fff;
    background: #414d52;
}

a[data-toggle="collapse"] {
    position: relative;
}

#sidebar .dropdown-toggle::after {
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #414d52;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}



a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    #sidebar {
        min-width: 80px;
        max-width: 80px;
        text-align: center;
        margin-left: -80px !important;
    }

    .dropdown-toggle::after {
        top: auto;
        bottom: 10px;
        right: 50%;
        -webkit-transform: translateX(50%);
        -ms-transform: translateX(50%);
        transform: translateX(50%);
    }

    #sidebar.active {
        margin-left: 0 !important;
    }

    #sidebar .sidebar-header h3,
    #sidebar .CTAs {
        display: none;
    }

    #sidebar .sidebar-header strong {
        display: block;
    }

    #sidebar ul li a {
        padding: 20px 10px;
    }

    #sidebar ul li a span {
        font-size: 0.85em;
    }

    #sidebar ul li a i {
        margin-right: 0;
        display: block;
    }

    #sidebar ul ul a {
        padding: 10px !important;
    }

    #sidebar ul li a i {
        font-size: 1.3em;
    }

    #sidebar {
        margin-left: 0;
    }
}

.thead {
    background: #09f;
    border-radius: 0.25rem 0.25rem 0rem 0rem;
    color: white;
}

.th {
    cursor: pointer;
    padding: 0.5rem;
}

.th:hover {
    background: #89d0ff;
    color: black;
}

.td {
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 0px;
    padding-right: 0px;
}

.tbody {
    background: white;
    border-radius: 0rem 0rem 0.25rem 0.25rem;
}

.tr {
    padding: 5px;
}

.tr:nth-child(even) {
    background-color: #E7E9EB;
}

.tr:nth-child(odd) {
    background-color: #fff;
}

.pgbtn {
    padding: 10px;
    color: #212529;
    background-color: #c6c6c6;
    border: 0;
    outline: 0;
    -webkit-transition: all .3s linear;
    transition: all .3s linear;
    display: inline-flex;
    margin: 2px;
}

.pgbtn:hover {
    background-color: #4285f4;
    border-radius: 0.125rem;
    cursor: pointer;
    -webkit-transition: all .3s linear;
    transition: all .3s linear;
}

.pgbtnactive {
    background-color: #4285f4;
    border-radius: 0.125rem;
    cursor: pointer;
    -webkit-transition: all .3s linear;
    transition: all .3s linear;
}

/* -------------------------tabs start----------------- */
/* Style the tab */
.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: #6c757d;
}

/* Style the buttons inside the tab */
.tab button {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: 0.3s;
    font-size: 17px;
}

/* Change background color of buttons on hover */
.tab button:hover {
    background-color: #ddd;
}

/* Create an active/current tablink class */
.tab button.active {
    background-color: #ffff;
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

.img-circle {
    border-radius: 50%;
}

img.img-circle {
    background: white;
}


.img-thumbnail {
    border-radius: 0;
    display: inline-block;
    padding: 10px;
}

.img-thumbnail>div {
    display: inline-block;
    overflow: hidden;
    height: 140px;
    border: 5px solid #fff;
    -webkit-box-shadow: 0 2px 0 2px #09f;
    box-shadow: 0 2px 0 2px #09f;
    border-radius: 50%;
}

/* -------------------------tabs end----------------- */
/* -------------------------table device friendly start----------------- */
@media (max-width: 700px) {

    .table .th {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }


    .table .td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    .table .td {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: .8em;
        text-align: right !important;
    }

    .table .tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: 0.625em;
    }
}

/* -------------------------table device friendly end----------------- */

/* -------------------------toast start----------------- */

.toastbody {
    position: fixed;
    right: 0;
    z-index: 999999;
}

.bl-info {
    border-left: 8px solid orange;
}

.bl-success {
    border-left: 8px solid #47d764;
}

.bl-error {
    border-left: 8px solid red;
}

.color-info {
    color: orange;
}

.color-success {
    color: #47d764;
}

.color-error {
    color: red;
}

.toast {
    width: 360px;
    height: 95px;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: #ffffff;
    box-shadow: 0 10px 20px rgba(75, 50, 50, 0.05);
    border-radius: 7px;
    display: grid;
    grid-template-columns: 1.2fr 6fr 0.5fr;
    transform: translate(400px);
    transition: 1s;
    z-index: 99999;
    position: relative;
}

.container-1,
.container-2 {
    align-self: center;
}

.container-1 i {
    font-size: 40px;
    padding: 0;
    margin: 0;
    display: flex;
    font-family: "Poppins", sans-serif;
    border: none;
}

.container-2 p:first-child {
    color: #101020;
    font-weight: 600;
    font-size: 16px;
    padding: 0;
    margin: 0;
    font-family: "Poppins", sans-serif;
    border: none;
}

.container-2 p:last-child {
    font-size: 15px;
    color: #656565;
    font-weight: 400;
    padding: 0;
    margin: 0;
    font-family: "Poppins", sans-serif;
    border: none;
}

.toast button {
    align-self: flex-start;
    background-color: transparent;
    font-size: 25px;
    line-height: 0;
    color: #656565;
    cursor: pointer;
    font-family: "Poppins", sans-serif;
    border: none;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .toastbody {
        /* padding: 30px 60px; */
    }
}

.loader {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, transparent 40%, #09f);
    animation: animate 2s linear infinite;
}

@keyframes animate {
    0% {
        transform: rotate(0deg);
        filter: hue-rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loader:before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: white;
    border-radius: 50%;
    z-index: 1100;

}

.loader:after {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background: linear-gradient(45deg, transparent, transparent 40%, #09f);
    border-radius: 50%;
    z-index: 1;
    filter: blur(30px);
}

/* ----------------toast end -------------------------------- */
/* ----------------sort style start -------------------------------- */
#sortlist {
    display: flex;
    list-style-type: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
}

.slist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.slist li {
    margin: 4px;
    padding: 10px;
}


.slist li.hint {
    border: 1px solid #ffc49a;
    background: #feffb4;
}

.slist li.active {
    border: 1px solid #ffa5a5;
    background: #ffe7e7;
}


/* ----------------sort style  end -------------------------------- */
/* ----------------header styles -------------------------------- */
body {
    background-color: #ecf0f5;
}

.navtop-bg {
    background: #09f;
}



.left-navbar-ico {
    padding: .25rem .75rem;
    font-size: 1.25rem;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: .25rem;
    margin: 5px;
}

.constom-menu {
    width: 255px;
    left: -200px;
}

.mr-right {
    margin-right: 20px;
}

.profile-pic {
    border-radius: 100%;
    width: 52px;
    height: 52px;

    border: 2px solid #fff;
    -webkit-box-shadow: 0 2px 0 2px #09f;
    box-shadow: 0 2px 0 2px #09f;
    border-radius: 50%;

}

.mpzero {
    margin: 0px;
    padding: 0px
}

.divider {
    margin: 0px 0 0px;
    clear: both;
    background: #e4e4e4;
    height: 1px;
}

.mtb {
    margin-top: 10px;
}

.otherweb {
    border: solid 1px;
    font-size: 20px;
    line-height: 50px;
    margin: 10px;
}

.bg-09f {
    background: #09F;
}

.cursor-pointer {
    cursor: pointer;
}

.img-thumbnail {
    border-radius: 100% !important;
}

.hide , .hidden {
    display: none;
}


.notification-ui a:after {
    display: none;
}

.notification-ui_icon {
    position: relative;
}

.notification-ui_icon .unread-notification {
    display: inline-block;
    height: 7px;
    width: 7px;
    border-radius: 7px;
    background-color: #66bb6a;
    position: absolute;
    top: 7px;
    left: 12px;
}

@media (min-width: 900px) {
    .notification-ui_icon .unread-notification {
        left: 20px;
    }
}

.notification-ui_dd {
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 5px 20px -3px rgba(0, 0, 0, 0.16);
    border: 0;
    max-width: 400px;
}

@media (min-width: 900px) {
    .notification-ui_dd {
        min-width: 400px;
        position: absolute;
        left: -297px;
        top: 70px;
    }
}

.notification-ui_dd .notification-ui_dd-header {
    border-bottom: 1px solid #ddd;
    padding: 15px;
}

.notification-ui_dd .notification-ui_dd-header h3 {
    margin-bottom: 0;
}

.notification-ui_dd .notification-ui_dd-content {
    max-height: 550px;
    overflow: auto;
}

.notification-list {
    display: flex;
    justify-content: space-between;
    padding: 6px 16px;
    border-bottom: 1px solid #ddd;
}

.notification-list--unread {
    position: relative;
    background: #f4f8fa;
}

.notification-list--unread:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: calc(100% + 1px);
    border-left: 2px solid #007bff;
}




.noti_Counter {
    position: absolute;
    background: #E1141E;
    color: #FFF;
    font-size: 12px;
    font-weight: normal;
    padding: 1px 3px;
    margin: -3px 0 0 -11px;
    border-radius: 45%;
    z-index: 1;
    width: 20px;
}

/* ----------------header styles end  -------------------------------- */
/* ----------------side bar  -------------------------------- */

.wrapper {
    display: flex;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #222d32;
    color: #fff;
    transition: all 0.3s;
}

#sidebar.active {
    min-width: 92px;
    max-width: 80px;
    text-align: center;
}

#sidebar.active .sidebar-header h6,
#sidebar.active .CTAs {
    display: none;
}

#sidebar.active .sidebar-header strong {
    display: block;
}

#sidebar ul li a {
    color: #ffffff;
    text-align: left;
}

#sidebar.active ul li a {
    padding: 20px 10px;
    text-align: center;
    font-size: 0.85em;
}

#sidebar.active ul li a i {
    margin-right: 0;
    display: block;
    font-size: 1.8em;
    margin-bottom: 5px;
}

#sidebar.active ul ul a {
    padding: 10px !important;
}

#sidebar.active .dropdown-toggle::after {
    top: auto;
    bottom: 10px;
    right: 50%;
    -webkit-transform: translateX(50%);
    -ms-transform: translateX(50%);
    transform: translateX(50%);
}

#sidebar .sidebar-header {
    padding: 7px;
    background: #6d7fcc;
}

#sidebar .sidebar-header strong {
    display: none;
    font-size: 1.0em;
}

#sidebar .sidebar-header h6 {
    font-size: 15px;
}

#sidebar ul li a {
    padding: 10px;
    font-size: 1.1em;
    display: block;
}

#sidebar ul li a:hover {
    color: #7386D5;
    background: #fff;
}

#sidebar ul li a i {
    margin-right: 10px;
    font-size: 2rem;
}

#sidebar ul li.active>a,
#sidebar a[aria-expanded="true"] {
    color: #fff;
    background: #414d52;
}

a[data-toggle="collapse"] {
    position: relative;
}


ul ul a {
    font-size: 0.9em !important;
    padding-left: 30px !important;
    background: #414d52;
}

ul.CTAs {
    padding: 20px;
}

ul.CTAs a {
    text-align: center;
    font-size: 0.9em !important;
    display: block;
    border-radius: 5px;
    margin-bottom: 5px;
}



a.article,
a.article:hover {
    background: #6d7fcc !important;
    color: #fff !important;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

@media (max-width: 768px) {
    #sidebar {
        min-width: 80px;
        max-width: 80px;
        text-align: center;
        margin-left: -80px !important;
    }

    .dropdown-toggle::after {
        top: auto;
        bottom: 10px;
        right: 50%;
        -webkit-transform: translateX(50%);
        -ms-transform: translateX(50%);
        transform: translateX(50%);
    }

    #sidebar.active {
        margin-left: 0 !important;
    }

    #sidebar .sidebar-header h6,
    #sidebar .CTAs {
        display: none;
    }

    #sidebar .sidebar-header strong {
        display: block;
    }

    #sidebar ul li a {
        padding: 20px 10px;
    }

    #sidebar ul li a span {
        font-size: 0.85em;
    }

    #sidebar ul li a i {
        margin-right: 0;
        display: block;
    }

    #sidebar ul ul a {
        padding: 10px !important;
    }

    #sidebar ul li a i {
        font-size: 1.3em;
    }

    #sidebar {
        margin-left: 0;
    }
}

.cur-pointer {
    cursor: pointer;
}

#newsesion {
    display: none;
}

/* ----------------side bar end  -------------------------------- */

/* CHECKBOX */
.demo:not(:checked),
.demo:checked {
    position: absolute;
    left: -9999px;
}

.demo:not(:checked)+label,
.demo:checked+label {
    position: relative;
    padding-left: 4em;
    padding-top: .25em;
    cursor: pointer;
}

.demo:not(:checked)+label:before,
.demo:checked+label:before,
.demo:not(:checked)+label:after,
.demo:checked+label:after {
    content: '';
    position: absolute;
    height: 1.5em;
    transition: all .5s ease;
}

.demo:not(:checked)+label:before,
.demo:checked+label:before {
    left: 0;
    top: 5;
    width: 3em;
    border: 2px solid #dddddd;
    background: #dddddd;
    border-radius: 1.1em;
    z-index: 1;
}

.demo:not(:checked)+label:after,
.demo:checked+label:after {
    left: .15em;
    top: 5px;
    background-color: #fff;
    border-radius: 50%;
    width: 1.5em;
    z-index: 1;
}

.demo:checked+label:after {
    left: 1.65em;
}

.demo:checked+label:before {
    background-color: #72da67;
    border-color: #72da67;
    z-index: 1;
}


@media screen {
    .pdf-page {
        position: relative;
        margin: 0 auto;
        margin-top: 10px;

        color: #333;
        background-color: #fff;
        box-shadow: 0 5px 10px 0 rgba(0, 0, 0, .3);
        box-sizing: border-box;
    }
}

@media print {
    body {
        margin: 0px;
        padding: 0px;
    }

    html {
        margin: 0px;
        padding: 0px;
    }

    .header {
        display: none !important;
    }

    .pdf-page {
        position: relative;
        margin: 0 auto;
        border: initial;
        border-radius: initial;
        width: initial;
        min-height: initial;
        box-shadow: initial;
        background: initial;
        page-break-after: always;
    }

    .size-a4-portrait {
        width: 100% !important;

        height: 100% !important;

    }

}

.pdf-page {
    font-family: "DejaVu Sans", "Arial", sans-serif;
}

/* Dimensions other than px and em should be divided by 1.33 for the proper PDF output */
.size-a4-portrait {
    width: 8.1in;
    height: 12.7in;
    display: flex;
    flex-direction: column;
}

.size-a4-landscape {
    width: 11.7in;
    height: 8.3in;
    display: flex;
    flex-direction: column;
}


.size-executive .pdf-header {
    margin-bottom: .1in;
}

.background .watermark {
    position: absolute;
    text-align: center;
    width: 100%;
    opacity: 0.3;
    padding: 10%;
    padding-top: 215px;
}

.background .watermark img {
    height: auto;
    width: 70%;
    margin-top: 180px;
    opacity: 0.8;
}

.background .watermark img {
    vertical-align: middle;
    border-style: none;
}

.background .background {
    position: absolute;
    text-align: center;
    width: 100%;
}

.background .background img {
    height: auto;
    width: 100%;
    opacity: 0.8;
}

.background .background img {
    vertical-align: middle;
    border-style: none;
}

/* -------------------------post styles start----------------- */

/* Images should be responsive by default in the post editor. */
.post-editor .ql-editor img {
  max-width: 100%;
  height: auto;
}

/* YouTube embeds (editor + view). */
.post-content .post-youtube {
  max-width: 100%;
}

.post-content .post-youtube-iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  display: block;
}

.post-image-pop {
  position: absolute;
  z-index: 50;
  width: 320px;
  max-width: calc(100% - 12px);
}

.post-link-pop {
  position: absolute;
  z-index: 50;
  width: 360px;
  max-width: calc(100% - 12px);
}

.post-editor-status {
  min-height: 1.25rem;
}

.post-recent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 992px) {
  .post-recent-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 576px) {
  .post-recent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.post-recent-item {
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.post-recent-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.post-recent-item.is-selected {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.18);
}

.post-recent-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.post-recent-item .meta {
  padding: 6px 8px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Image group layouts (editor + view). */
.post-content .post-gallery {
  margin: 0;
}

.post-content .post-gallery-item {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.post-content .post-gallery-item:hover {
  transform: scale(1.01);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

@media (prefers-reduced-motion: reduce) {
  .post-content .post-gallery-item {
    transition: none;
  }
  .post-content .post-gallery-item:hover {
    transform: none;
  }
}

.post-content .post-gallery-grid,
.post-content .post-gallery-gallery,
.post-content .post-gallery-collage,
.post-content .post-gallery-mosaic {
  display: grid;
  gap: 10px;
}

/* Grid: responsive uniform columns */
.post-content .post-gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

/* Gallery: larger tiles */
.post-content .post-gallery-gallery {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Collage: first item featured on larger screens */
.post-content .post-gallery-collage {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 576px) {
  .post-content .post-gallery-collage {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .post-content .post-gallery-collage .post-gallery-item:first-child {
    grid-column: span 2;
  }
}

/* Masonry: CSS columns */
.post-content .post-gallery-masonry {
  column-gap: 10px;
  columns: 3 220px;
}

.post-content .post-gallery-masonry .post-gallery-item {
  width: 100%;
  display: inline-block;
  margin: 0 0 10px 0;
  break-inside: avoid;
}

@media (max-width: 576px) {
  .post-content .post-gallery-masonry { columns: 2 160px; }
}

/* Justified: flexible rows with cropped thumbnails */
.post-content .post-gallery-justified {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-content .post-gallery-justified .post-gallery-item {
  flex: 1 1 220px;
  height: 180px;
  width: auto;
  object-fit: cover;
}

@media (max-width: 576px) {
  .post-content .post-gallery-justified .post-gallery-item { height: 150px; }
}

/* Mosaic: simple pattern with spans */
.post-content .post-gallery-mosaic {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 140px;
}

.post-content .post-gallery-mosaic .post-gallery-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content .post-gallery-mosaic .post-gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.post-content .post-gallery-mosaic .post-gallery-item:nth-child(2) {
  grid-column: span 2;
}

@media (max-width: 576px) {
  .post-content .post-gallery-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 120px;
  }
  .post-content .post-gallery-mosaic .post-gallery-item:nth-child(1),
  .post-content .post-gallery-mosaic .post-gallery-item:nth-child(2) {
    grid-column: span 2;
    grid-row: auto;
  }
}

/* Stacked: one per row */
.post-content .post-gallery-stacked {
  display: block;
}

.post-content .post-gallery-stacked .post-gallery-item {
  width: 100%;
  margin: 0 0 10px 0;
}

/* Filmstrip / Slider: horizontal scroll with snap */
.post-content .post-gallery-filmstrip,
.post-content .post-gallery-slider {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

/* Post view: clicking an image opens the lightbox. */
.js-post-content img {
  cursor: zoom-in;
}

.js-post-content img:hover {
  opacity: 0.98;
}

.post-content .post-gallery-filmstrip .post-gallery-item,
.post-content .post-gallery-slider .post-gallery-item {
  flex: 0 0 auto;
  width: 280px;
  height: 190px;
  object-fit: cover;
  scroll-snap-align: start;
}

@media (max-width: 576px) {
  .post-content .post-gallery-filmstrip .post-gallery-item,
  .post-content .post-gallery-slider .post-gallery-item { width: 240px; height: 170px; }
}

/* -------------------------post styles end----------------- */