/* UTIL */
.home-shield-bg,
.dtd-home-1901-images .wp-block-image,
.updated-house-polaroid{
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* INTRO & EVENTS */

@-webkit-keyframes rotating /* Safari and Chrome */ {
    from {
      -webkit-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    to {
      -webkit-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
  }
  @keyframes rotating {
    from {
      -ms-transform: rotate(0deg);
      -moz-transform: rotate(0deg);
      -webkit-transform: rotate(0deg);
      -o-transform: rotate(0deg);
      transform: rotate(0deg);
    }
    to {
      -ms-transform: rotate(360deg);
      -moz-transform: rotate(360deg);
      -webkit-transform: rotate(360deg);
      -o-transform: rotate(360deg);
      transform: rotate(360deg);
    }
}

.home-shield-bg{
    position: absolute;
    top: -150px;
    left: -150px;
    opacity: 0.025;
}

.home-shield-bg img{
    -webkit-user-select: none;
    user-select: none;
}

@media only screen and (max-width: 769px){
    .home-shield-bg{
        display: none;
    }
}

.home-shield-bg img{
    -webkit-animation: rotating 120s linear infinite;
    -moz-animation: rotating 120s linear infinite;
    -ms-animation: rotating 120s linear infinite;
    -o-animation: rotating 120s linear infinite;
    animation: rotating 120s linear infinite;
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .dtd-home-intro{
        margin-top: 20px;
    }
}

@media only screen and (min-width: 1401px) {
    .dtd-home-intro{
        margin-top: 50px;
        margin-bottom: 25px!important;
    }
    
    .dtd-home-title-column{
        padding-top: 40px!important;    
    }

    /* body.home .dtd-events{
        margin-left: -9em;
    } */
}

@media only screen and (min-width: 1501px) and (max-width: 1920px) {
    body.home #committed-title,
    body.home .committed-p{
        margin-left: -150px;
    }
}

@media only screen and (min-width: 1921px) {
    body.home #committed-title,
    body.home .committed-p{
        margin-left: -300px;
    }
}

body.home .committed-p{
    max-width: 550px;
    line-height: 1.25;
}

body.home #committed-title.compressed{
    max-width: 650px;
}



.invert-boldness h1.stk-block-heading__text,
.invert-boldness h2.stk-block-heading__text{
    font-weight: 300!important;
}

.home h1 em:before{
    display: block;
    width: 1901px;
    content: " ";
}

body.home .stk-425a78d-container{
    max-width: inherit!important;
}

/* EXCELLENCE POINTS */
@media only screen and (max-width: 768px) {
    .dtd-home-icon-bullets .dtd-excellence-point .stk-column-wrapper{
        padding: 20px 25px!important;
    }
    
    .dtd-home-icon-bullets .dtd-excellence-point p{
        text-align: left!important;
    }
    
    .dtd-home-icon-bullets .dtd-excellence-point .value-title,
    .dtd-home-icon-bullets .dtd-excellence-point .wp-block-stackable-heading{
        margin-bottom: 5px!important;
    }
    
    .dtd-home-icon-bullets .dtd-excellence-point p{
        font-size: 18px;
        line-height: 1.25;
    }
    
    .dtd-home-icon-bullets .dtd-excellence-point .value-title{
        font-size: 14px;
    }
}

.dtd-excellence-point .stk-block-column--v2{
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* IMAGES */
.dtd-home-1901-images{
    position: relative;
    margin: 0;
    height: 0!important;
}

.dtd-home-1901-images .wp-block-image{
    position: absolute;
    transition: 0.25s transform ease-in;
}
    
.dtd-home-1901-picture-1,
.dtd-home-1901-picture-3{
    z-index: 10;
}

.dtd-home-1901-images img{
    width: auto!important;
}

.dtd-home-1901-picture-1 img{ 
    transform: rotate(-15deg);
    
    -webkit-filter: drop-shadow(-6px -3px 15px #cad5d578);    
    filter: drop-shadow(-6px -3px 15px #cad5d578);
}

.dtd-home-1901-picture-3 img{ 
    transform: rotate(10deg);
    
    max-height: 475px;
    
    -webkit-filter: drop-shadow(7px -3px 15px #cad5d578);    
    filter: drop-shadow(7px -3px 15px #cad5d578);
}
    
@media only screen and (max-width: 1024px) {
    .dtd-home-1901-picture-2{
        display: none;
    }
    
    .dtd-home-1901-images img{
        max-height: 300px;
    }
    
    .dtd-home-1901-picture-1{
        top: -10px;
        left: -90px;
    }
    
    .dtd-home-1901-picture-1.spotlight{
        z-index: 1901;
    }
    
    .dtd-home-1901-picture-3 img{
        max-height: 250px;
    }
    
    .dtd-home-1901-picture-3{
        top: 20px;
        right: -60px;
    }
}

@media only screen and (min-width: 1025px) {
    .dtd-home-1901-images .wp-block-image:hover{
        transform: scale(1.05);
    }
    
    .dtd-home-1901-images img{
        max-height: 450px;
    }
    
    .dtd-home-1901-picture-1{
        top: -50px;
        left: -100px;
    }

    .dtd-home-1901-picture-2{
        right: -100px;
        top: -200px;
    }
    
    .dtd-home-1901-picture-2 img{ 
        transform: rotate(7deg);
        max-height: 550px;
        
        -webkit-filter: drop-shadow(7px -3px 15px #cad5d578);    
        filter: drop-shadow(7px -3px 15px #cad5d578);
    }
    
    .dtd-home-1901-picture-3{
        top: 300px;
        left: 90px;
    }
}

/* CURSORS 🐤🥚 */
.footer-crest:hover{
    cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'  width='42' height='50' viewport='0 0 100 100' style='fill:black;font-size:25px;'><text y='50%'>👀</text></svg>") 16 0,auto; 
}

.dtd-home-1901-images[data-cursor="1"] .wp-block-image{
    cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'  width='42' height='50' viewport='0 0 100 100' style='fill:black;font-size:25px;'><text y='50%'>✨</text></svg>") 16 0,auto; 
}

.dtd-home-1901-images[data-cursor="2"] .wp-block-image{
    cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'  width='42' height='50' viewport='0 0 100 100' style='fill:black;font-size:25px;'><text y='50%'>🔼</text></svg>") 16 0,auto; 
}

.dtd-home-1901-images[data-cursor="3"] .wp-block-image{
    cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'  width='42' height='50' viewport='0 0 100 100' style='fill:black;font-size:25px;'><text y='50%'>🌠</text></svg>") 16 0,auto; 
}

.dtd-home-1901-images[data-cursor="4"] .wp-block-image{
    cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'  width='42' height='50' viewport='0 0 100 100' style='fill:black;font-size:25px;'><text y='50%'>🎼</text></svg>") 16 0,auto; 
}

/* NEWS */
@media only screen and (max-width: 768px) {
    .home .ct-posts-shortcode{
        margin-block-start: 0;
    }
    
    .ct-posts-shortcode article:not(:first-of-type) .boundless-image{
        display: none;
    }
}

/* THE NEXT GEN BLOCK */
.next-gen-title{
    position: initial;
}

.next-gen-title h2.stk-block-heading__text{
    line-height: 1.2em!important;
    font-weight: 400;
    font-size: 3em;
    z-index: 4;
}

@media only screen and (min-width: 769px) {
    .next-gen-title h2.stk-block-heading__text{
        line-height: 0.6em!important;
    }
}

.next-gen-title h2 em{
    background-image: none;
    font-size: 250%;
    font-style: normal;
    font-weight: 900;

    line-height: 0.8;
    display: inline-block;
    margin-bottom: 0.3em;
}

.dynamic-sponsor-block:has(.no-donors){
    display: none;
}

@media (prefers-contrast: no-preference) {
    .next-gen-title h2 em{
        -webkit-text-stroke-width: 2px;
        -webkit-text-stroke-color: #2655a9;
        color: white;
        
        text-shadow: 0 1px 0 #cccccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbbbbb, 0 4px 0 #b9b9b9, 0 5px 0 #aaaaaa, 0 6px 1px rgba(0, 0, 0, 0.1), 0 0 5px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.2), 0 20px 20px rgba(0, 0, 0, 0.15)
    }
}


@media only screen and (max-width: 768px) {
    body.home .next-gen-title h2 em{
        -webkit-text-stroke-width: 1.5px;
        font-size: 60px!important;
        line-height: 0.65;
    }
}

.next-gen-title h2 em:after{
    content: ' ';
    width: 60px;
    display: block;
}

.dtd-donors .name {
    text-shadow: 2px 2px 5px #1d4b8f;
}

.dtd-home-blueprint{
    margin-top: -120px!important;
}

.polaroid-container{
    margin: 0 auto!important;
    position: relative;
    z-index: 2;
}

.updated-house-polaroid{
    position: absolute;
    top: 150px;
}

.updated-house-polaroid img{
    max-width: 400px;
}

@media (pointer: fine) {
    .polaroid-container.on .updated-house-polaroid:not(.main){
        opacity: 0.4;
    }
    
    .polaroid-container.on .updated-house-polaroid.main{
        transform: scale(1.1);
    }
}

.updated-house-polaroid:nth-of-type(1){
    left: -2%;
    transform: rotate(-5deg);
    
    box-shadow: -6px -1px 20px -6px rgb(0 0 0 / 26%);
}

.updated-house-polaroid:nth-of-type(2){
    margin-top: 50px;
    right: -4%;
    transform: rotate(7deg);
    
    box-shadow: 5px -4px 20px -6px rgb(0 0 0 / 26%);
}

.updated-house-polaroid:nth-of-type(3){
    top: -20px;
    left: 26%;
    transform: rotate(1deg);
    
    box-shadow: -9px 19px 20px -6px rgb(0 0 0 / 26%);
}

.entry-content .updated-house-polaroid:nth-of-type(3) figcaption{
    font-size: 1.85em;
}

@media only screen and (max-width: 768px) {
    .updated-house-polaroid img{
        max-height: 200px;
        max-width: 100%;
    }
    
    .updated-house-polaroid:nth-of-type(1){
        display: none;
        top: 10px;
    }
    
    .updated-house-polaroid:nth-of-type(2){
        display: none;
        left: -40px;
        top: 250px;
    }
    
    .updated-house-polaroid:nth-of-type(3){
        transform: rotate(-5deg);
        left: 0px;
        top: 10px;
    }

    .updated-house-polaroid:nth-of-type(3) img{
        max-height: initial;
    }
}

@media only screen and (min-width: 769px) {
    .updated-house-polaroid:nth-of-type(3) img{
        max-width: 550px;
    }
}

/* Home page editorial rebuild: keep each idea in one calm composition. */
body.home .dtd-rush-cta {
    width: min(calc(100% - 32px), 860px) !important;
    min-height: 0 !important;
    margin: clamp(56px, 8vw, 108px) auto !important;
    padding: clamp(38px, 6vw, 64px) !important;
    border-radius: 20px !important;
}
body.home .dtd-rush-cta-columns,
body.home .dtd-rush-cta-columns > .wp-block-column {
    display: block !important;
    width: auto !important;
    flex-basis: auto !important;
}
body.home .dtd-rush-cta-title {
    max-width: none;
    margin: 0 0 18px !important;
    font-size: clamp(42px, 5vw, 62px) !important;
    line-height: 1 !important;
}
body.home .dtd-rush-cta-copy { max-width: 52ch; font-size: 18px; line-height: 1.5; }
body.home .dtd-rush-cta-buttons { margin: 28px 0 0 !important; justify-content: flex-start !important; }
body.home .dtd-rush-cta-buttons .wp-block-button__link { min-width: 180px; padding: 15px 26px; }

/* The historical moment is a single archival panel, not a collision of photos. */
body.home .dtd-home-1901-images { display: none !important; }
body.home .dtd-home-1901-native {
    display: block !important;
    width: min(calc(100% - 32px), 920px) !important;
    min-height: 0 !important;
    margin: 72px auto !important;
    padding: clamp(42px, 6vw, 76px) !important;
    border: 2px solid #6d56a1 !important;
    border-radius: 20px !important;
    background:
        linear-gradient(rgb(255 255 255 / 88%), rgb(255 255 255 / 92%)),
        url('https://iitdelts.org/wp-content/uploads/2022/11/old-wall.png') center / cover !important;
}
body.home .dtd-home-1901-native > .wp-block-column:first-child { display: none !important; }
body.home .dtd-home-1901-native > .wp-block-column:last-child { padding: 0 !important; text-align: center; }
body.home .dtd-home-1901-title { font-size: clamp(48px, 6vw, 76px) !important; }
body.home .dtd-home-1901-copy { width: min(100%, 620px); margin: 18px auto 28px !important; font-size: 18px; line-height: 1.6; }

/* Big watermark, low visual weight; the cards form an even, readable grid. */
body.home .dtd-home-comfort-native {
    display: block !important;
    width: min(calc(100% - 32px), 1160px) !important;
    margin: 78px auto !important;
    padding: clamp(44px, 6vw, 80px) !important;
    overflow: hidden;
    border-radius: 24px;
    background: #f7f5fa !important;
}
body.home .dtd-home-comfort-native::before {
    left: 50%;
    top: 50%;
    width: min(68vw, 760px);
    opacity: .045;
    transform: translate(-50%, -50%);
}
body.home .dtd-home-comfort-title {
    max-width: 14ch;
    margin: 0 auto 46px !important;
    font-size: clamp(48px, 5.2vw, 72px) !important;
    line-height: 1.02 !important;
    text-align: center;
}
body.home .dtd-home-comfort-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: none !important;
    grid-auto-flow: row !important;
    gap: 18px !important;
}
body.home .dtd-home-comfort-card,
body.home .dtd-home-comfort-card:nth-child(3),
body.home .dtd-home-comfort-card:nth-child(4) {
    min-height: 245px;
    transform: none !important;
    border-style: solid !important;
    border-radius: 16px !important;
    background: rgb(255 255 255 / 88%);
    box-shadow: 0 12px 28px rgb(40 26 72 / 9%);
}
body.home .dtd-home-comfort-copy { max-width: 35ch; font-size: 15px; line-height: 1.45; }

/* Photo memories are a contained rail—never an overlay over the giving message. */
body.home .polaroid-container {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: min(calc(100% - 32px), 1100px);
    height: auto !important;
    margin: 70px auto 0 !important;
    padding: 0 !important;
}
body.home .polaroid-container .updated-house-polaroid {
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    margin: 0 !important;
    transform: none !important;
    box-shadow: 0 14px 32px rgb(27 17 47 / 15%) !important;
}
body.home .polaroid-container .updated-house-polaroid img {
    display: block;
    width: 100% !important;
    max-width: none !important;
    height: 210px;
    max-height: none !important;
    object-fit: cover;
}
body.home .polaroid-container .updated-house-polaroid figcaption { padding: 13px 16px; font-size: 18px !important; }
body.home .dtd-home-blueprint-native {
    width: min(calc(100% - 32px), 1100px) !important;
    margin: 30px auto 86px !important;
    border-radius: 20px !important;
}
body.home .dtd-home-blueprint-native > .wp-block-column:first-child,
body.home .dtd-home-blueprint-native > .wp-block-column:last-child { display: none !important; }
body.home .dtd-home-blueprint-native > .wp-block-column:nth-child(2) { flex-basis: 100% !important; padding: clamp(48px, 7vw, 82px) clamp(24px, 7vw, 100px) !important; }
body.home .dtd-home-blueprint-title { max-width: 15ch; margin: 0 auto 26px !important; font-size: clamp(44px, 5.6vw, 74px) !important; line-height: 1.05 !important; }
body.home .dtd-home-blueprint-native > .wp-block-column:nth-child(2) > p { max-width: 62ch; margin-inline: auto; line-height: 1.6; text-align: center; }

/* The profile update card should read as a focused action, not an empty billboard. */
body.home .dtd-update-info {
    width: min(calc(100% - 32px), 900px) !important;
    min-height: 0 !important;
    margin: 78px auto !important;
    padding: clamp(38px, 6vw, 64px) !important;
    border-radius: 20px !important;
}
body.home .dtd-update-info-title { max-width: 12ch; font-size: clamp(42px, 5vw, 62px) !important; }
body.home .dtd-update-info-copy, body.home .dtd-update-info-lead { max-width: 56ch; }

@media (max-width: 767px) {
    body.home .dtd-home-comfort-grid,
    body.home .polaroid-container { grid-template-columns: 1fr !important; }
    body.home .dtd-home-comfort-title { text-align: left; }
    body.home .dtd-home-comfort-card { min-height: 0; }
    body.home .polaroid-container .updated-house-polaroid img { height: 230px; }
    body.home .dtd-home-blueprint-native > .wp-block-column:nth-child(2) { padding: 46px 24px !important; }
    body.home .dtd-home-blueprint-title { text-align: left !important; }
}

/* One archival feature, followed by one blueprint giving panel. */
body.home .dtd-home-history-feature { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(0, 1.1fr); align-items: stretch; width: min(calc(100% - 32px), 1060px); margin: 88px auto !important; overflow: hidden; border: 1px solid rgb(73 47 117 / 18%); border-radius: 18px; background: #fbfaf6; box-shadow: 0 18px 44px rgb(35 22 62 / 10%); }
body.home .dtd-home-history-feature .dtd-home-history-image { min-height: 100%; margin: 0 !important; background: #e9e3d5; }
body.home .dtd-home-history-feature .dtd-home-history-image img { display: block; width: 100% !important; height: 100% !important; min-height: 440px; object-fit: cover; filter: grayscale(1) contrast(.96); }
body.home .dtd-home-history-feature .dtd-home-history-image figcaption { position: absolute; clip: rect(0 0 0 0); clip-path: inset(50%); }
body.home .dtd-home-history-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 6vw, 78px); }
body.home .dtd-home-history-kicker { margin: 0 0 14px !important; color: #725594; font-size: 12px; font-weight: 800; letter-spacing: .13em; }
body.home .dtd-home-history-copy .dtd-home-1901-title { margin: 0 !important; font-size: clamp(44px, 5vw, 70px) !important; line-height: .95 !important; }
body.home .dtd-home-history-copy .dtd-home-1901-title em { color: #492f75; text-decoration: none; }
body.home .dtd-home-history-copy .dtd-home-1901-copy { width: auto; margin: 24px 0 30px !important; color: #3e3547; font-size: 18px; line-height: 1.6; }
body.home .dtd-home-history-button { margin: 0 !important; }
body.home .dtd-home-history-button .wp-block-button__link { padding: 14px 22px; }
body.home .polaroid-container, body.home .dtd-home-1901-images, body.home .updated-house-polaroid { display: none !important; }
body.home .dtd-home-blueprint-native { display: block !important; width: min(calc(100% - 32px), 1060px) !important; margin: 88px auto !important; overflow: hidden; border-radius: 18px !important; background-position: center !important; box-shadow: 0 18px 44px rgb(24 69 151 / 18%); }
body.home .dtd-home-blueprint-native > .wp-block-column:nth-child(2) { display: block !important; padding: clamp(54px, 8vw, 96px) clamp(26px, 9vw, 120px) !important; }
body.home .dtd-home-blueprint-title { max-width: 13ch; margin: 0 auto 24px !important; text-align: center !important; }
body.home .dtd-home-blueprint-native > .wp-block-column:nth-child(2) > p { max-width: 58ch; margin-inline: auto; font-size: 18px; }
body.home .dtd-home-blueprint-native .dynamic-sponsor-block { margin-top: 48px; }

@media (max-width: 767px) {
    body.home .dtd-home-history-feature { grid-template-columns: 1fr; margin-block: 54px !important; }
    body.home .dtd-home-history-feature .dtd-home-history-image img { min-height: 260px; max-height: 340px; }
    body.home .dtd-home-history-copy { padding: 34px 26px 40px; }
    body.home .dtd-home-blueprint-native { margin-block: 54px !important; }
}
