/*-- -------------------------- -->
<---           Blog             -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
    #blog-1144 {
        padding: var(--sectionPadding);
        background-color: #fffbef;
        position: relative;
        z-index: 1;
    }
    #blog-1144 .cs-container {
        width: 100%;
        /* changes to 1280px at tablet */
        max-width: 49rem;
        margin: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 48px - 64px */
        gap: clamp(3rem, 6vw, 4rem);
    }
    #blog-1144 .cs-content {
        /* set text align to left if content needs to be left aligned */
        text-align: left;
        width: 100%;
        display: flex;
        flex-direction: column;
        /* centers content horizontally, set to flex-start to left align */
        align-items: flex-start;
    }

    #blog-1144 .cs-title {
        /* max width of 18 characters, incldues spaces between words */
        max-width: 20ch;
    }
    #blog-1144 .cs-button-solid {
        font-size: 1rem;
        /* 46px - 56px */
        line-height: clamp(2.875rem, 5.5vw, 3.5rem);
        text-decoration: none;
        font-weight: 700;
        text-align: center;
        margin: 0;
        color: #1a1a1a;
        min-width: 12.5rem;
        padding: 0 1.5rem;
        background-color: var(--secondary);
        border-radius: 0.5rem;
        display: inline-block;
        position: relative;
        z-index: 1;
        /* prevents padding from adding to the width */
        box-sizing: border-box;
        transition: color 0.3s;
    }
    #blog-1144 .cs-button-solid:before {
        content: "";
        position: absolute;
        height: 100%;
        width: 0%;
        background: #000;
        opacity: 1;
        top: 0;
        left: 0;
        z-index: -1;
        border-radius: 0.5rem;
        transition: width 0.3s;
    }
    #blog-1144 .cs-button-solid:hover {
        color: #fff;
    }
    #blog-1144 .cs-button-solid:hover:before {
        width: 100%;
    }
    #blog-1144 .cs-card-group {
        width: 100%;
        padding: 0;
        margin: 0;
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 1.25rem;
    }
    #blog-1144 .cs-item {
        text-align: left;
        list-style: none;
        border-radius: 1rem;
        overflow: hidden;
        background-color: #f7f7f7;
        border: 1px solid #e8e8e8;
        grid-column: span 12;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        z-index: 1;
        transition:
            box-shadow 0.3s,
            transform 0.3s;
    }
    #blog-1144 .cs-item:hover {
        box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    }
    #blog-1144 .cs-item:hover .cs-picture img {
        opacity: 0.3;
        transform: scale(1.1);
    }
    #blog-1144 .cs-picture {
        width: 100%;
        height: 15rem;
        background-color: #1a1a1a;
        border-bottom: 4px solid var(--primary);
        overflow: hidden;
        display: block;
        /* prevents flexbox from squishing it */
        flex: none;
        position: relative;
        z-index: 1;
    }
    #blog-1144 .cs-picture img {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        object-fit: cover;
        transition:
            transform 0.6s,
            opacity 0.3s;
    }
    #blog-1144 .cs-flex {
        height: 100%;
        padding: 1.5rem;
        /* prevents padding and border from affecting height and width */
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
        z-index: 2;
    }
    #blog-1144 .cs-date {
        font-size: 1rem;
        line-height: 1.2em;
        font-weight: 700;
        text-align: inherit;
        margin: 0;
        padding: 0.5rem 1rem;
        /* prevents padding and border from affecting height and width */
        box-sizing: border-box;
        background-color: var(--primary);
        border-radius: 0.5rem 0.5rem 0 0;
        color: #fff;
        display: inline-block;
        position: absolute;
        left: 1.5rem;
        bottom: 100%;
        z-index: 2;
    }
    #blog-1144 .cs-h3 {
        font-size: 1.25rem;
        text-align: inherit;
        line-height: 1.2em;
        font-weight: 700;
        color: var(--headerColor);
        margin: 0 0 0.75rem 0;
        transition: color 0.3s;
    }
    #blog-1144 .cs-item-text {
        /* 14px - 16px */
        font-size: clamp(0.875rem, 1.5vw, 1rem);
        line-height: 1.5em;
        text-align: inherit;
        margin: 0 0 1.25rem;
        color: var(--bodyTextColor);
    }
    #blog-1144 .cs-link {
        font-size: 1rem;
        line-height: 1.2em;
        font-weight: 700;
        text-decoration: none;
        margin-top: auto;
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #blog-1144 .cs-link:hover .cs-arrow {
        transform: translateX(0.25rem);
    }
    #blog-1144 .cs-arrow {
        width: 1.25rem;
        height: auto;
        transition: transform 0.3s;
    }
}
/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
    #blog-1144 .cs-container {
        max-width: 80rem;
    }
    #blog-1144 .cs-content {
        text-align: left;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
    #blog-1144 .cs-title {
        margin: 0;
    }
    #blog-1144 .cs-item {
        grid-column: span 4;
    }
}
/* Dark Mode */
@media only screen and (min-width: 0rem) {
    body.dark-mode #blog-1144:before {
        content: "";
        width: 100%;
        height: 100%;
        background: var(--dark);
        opacity: 0.9;
        position: absolute;
        display: block;
        top: 0;
        left: 0;
        z-index: -1;
    }
    body.dark-mode #blog-1144 .cs-topper {
        color: var(--secondary);
    }
    body.dark-mode #blog-1144 .cs-title,
    body.dark-mode #blog-1144 .cs-text,
    body.dark-mode #blog-1144 .cs-h3,
    body.dark-mode #blog-1144 .cs-link,
    body.dark-mode #blog-1144 .cs-item-text {
        color: var(--bodyTextColorWhite);
    }
    body.dark-mode #blog-1144 .cs-text,
    body.dark-mode #blog-1144 .cs-item-text {
        opacity: 0.8;
    }
    body.dark-mode #blog-1144 .cs-item {
        background-color: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.2);
    }
    body.dark-mode #blog-1144 .cs-item:before {
        opacity: 0.3;
    }
    body.dark-mode #blog-1144 .cs-picture {
        border-color: #fff;
    }
    body.dark-mode #blog-1144 .cs-date {
        background-color: #fff;
    }
    body.dark-mode #blog-1144 .cs-date {
        color: var(--primary);
    }
    body.dark-mode #blog-1144 .cs-arrow,
    body.dark-mode #blog-1144 .cs-floater {
        filter: grayscale(1) brightness(1000%);
    }
}

                                

.slide-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(#fefefe, #afafaf);
  }
  
  .slide-container {
    position: absolute;
    top: calc(50% - 200px);
    left: calc(50% - 325px);
    width: 650px;
    height: 400px;
  }
  .slide-container::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 0;
    top: 7.5%;
    left: 2.5%;
    width: 95%;
    height: 95%;
    background-color: rgba(0, 0, 0, 0.8);
    filter: blur(24px);
  }
  
  .slide {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    cursor: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/544318/life-aquatic-submarine.png"), auto;
    background-color: #4a4a4a;
    perspective: 1500px;
  }
  .slide::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/544318/life-aquatic-cover.jpg");
    background-size: cover;
    opacity: 0.4;
    filter: blur(2px);
  }
  
  .slide-text {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    box-sizing: border-box;
    padding: 20px;
    color: #fff;
    font-family: "Overpass", sans-serif;
    font-weight: lighter;
  }
  .title {
    font-size: 1.35em;
    margin: 10px 0;
  }
  .rating {
    margin: 5px 0;
  }
  .summary {
    margin: 10px 0;
    line-height: 1.25em;
  }
  .fa {
    width: 16px;
    height: 16px;
  }
  
  .slice {
    position: absolute;
    z-index: 2;
    left: 100%;
    height: 100%;
    width: 100%;
    background-image: url("/blog/post_01/gallery/00.jpg");
    background-size: cover;
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
    transform-style: preserve-3d;
    transform-origin: center left;
    transition: transform 0.8s, box-shadow 0.8s;
  }
  .slice::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    transition: opacity 0.6s;
  }
  .slice-1 { background-position: 0 0; }
  .slice-2 { background-position: 33.3% 0; }
  .slice-3 { background-position: 66.6% 0; }
  .slice-4 { background-position: 100% 0; }
  .slice-parent {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 25%;
  }
  
  .slide-container:hover .slice::after { opacity: 0.8; }
  .slide-container:hover .slice-1 {
    transform: rotateY(-60deg);
   
  }
  .slide-container:hover .slice-2 {
    transform: rotateY(120deg);
   
  }
  .slide-container:hover .slice-3 {
    transform: rotateY(-120deg);
   
  }
  .slide-container:hover .slice-4 {
    transform: rotateY(120deg);
   
  }
  
  .codepen-link {
    position: absolute;
    bottom: 30px;
    right: 30px;
    height: 40px;
    width: 40px;
    z-index: 10;
    border-radius: 50%;
    box-sizing: border-box;
    background-image: url("/assets/NAV/ICO.png");
    background-position: center;
    background-size: cover;
    opacity: 0.5;
    transition: all 0.25s;
  }
  .codepen-link:hover {
    opacity: 0.8;
    box-shadow: 0 2px 4px #0c0c0c;
  }
  
  /* 1) Make slices GPU composited */
.slice {
    will-change: transform;            /* hint GPU */
    transform: translateZ(0);          /* force own layer */
    backface-visibility: hidden;
    contain: paint;                    /* isolate paints */
  }
  
  /* 2) Avoid animating box-shadow (repaints). Use an overlay that fades. */
  .slice::after {                       /* already exists in your CSS */
    /* keep your size/position */
    background: radial-gradient(
      120% 120% at 0% 50%,
      rgba(0,0,0,0.35) 0%,
      rgba(0,0,0,0.0) 60%
    );
    opacity: 0;
    transition: opacity .45s ease;      /* composite-friendly */
  }
  
  /* 3) On hover only animate transform + opacity (cheap) */
  .slide-container:hover .slice::after { opacity: .85; }
  .slide-container:hover .slice-1 { transform: rotateY(-55deg); }
  .slide-container:hover .slice-2 { transform: rotateY(110deg); }
  .slide-container:hover .slice-3 { transform: rotateY(-110deg); }
  .slide-container:hover .slice-4 { transform: rotateY(110deg); }
  
  /* 4) Kill the big blur glow behind the card or tone it down */
  .slide-container::after {
    /* filter: blur(24px);  <-- comment this out or reduce to ~8px */
    filter: blur(8px);
  }
  