/* Gradient titles on post listings */
.loop-entry .entry-title,
.loop-entry .entry-title a {
    background-image: linear-gradient(
        90deg,
        #0755A0 0%,
        #15945C 100%
    ) !important;

    background-clip: text !important;
    -webkit-background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}
/* =========================================================
   SINGLE POST
   ========================================================= */

.opennewtown-single-post {
    width: 100%;
}


/* =========================================================
   POST HERO
   ========================================================= */

.post-hero {
    position: relative;


    display: flex;
    align-items: flex-end;

    background-size: cover;
    background-position: center 40%;;

    overflow: hidden;
}
/* Hero height options */

.post-hero-short {
    min-height: clamp(320px, 30vw, 420px);
}

.post-hero-standard {
    min-height: clamp(380px, 36vw, 520px);
}

.post-hero-tall {
    min-height: clamp(440px, 42vw, 620px);
}

/* Dark overlay */

.post-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;

    background: linear-gradient(
        to right,
        rgba(5, 25, 32, 0.68) 0%,
        rgba(5, 25, 32, 0.52) 25%,
        rgba(5, 25, 32, 0.25) 50%,
        rgba(5, 25, 32, 0.06) 75%,
        rgba(5, 25, 32, 0) 100%
    );
}


/* Hero content */
.opennewtown-event-date {
    margin-top: 14px;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    color: #3569a3;
}
.post-hero-content {
    position: relative;
    z-index: 2;

    width: min(calc(100% - 80px), 1400px);

    margin: 0 auto;
    padding: 70px 0 75px;
}


.post-hero-title {
    max-width: 950px;

    margin: 0 !important;

    color: #ffffff !important;

    font-size: clamp(42px, 5vw, 76px);
    line-height: 1.05;
    font-weight: 700;

    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.28);
}


.post-hero-meta {
    margin-top: 14px;

    color: #ffffff;

    font-size: 18px;
    font-weight: 600;

    letter-spacing: 0.02em;
}


/* =========================================================
   ZIG ZAG
   ========================================================= */
.post-hero-separator {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 55px;
    overflow: hidden;
    pointer-events: none;
	
}

.post-hero-separator svg {
    display: block;
    width: 100%;
    height: 100%;
}

.post-hero-separator-back {
    fill: rgba(255, 255, 255, 0.45);
}

.post-hero-separator-front {
        fill: #ffffff !important;
}



/* =========================================================
   ARTICLE
   ========================================================= */

.opennewtown-post-inner {
    width: min(calc(100% - 80px), 1400px);
    margin: 0 auto;
    padding: 65px 0 80px;
}

.opennewtown-post-header {
    margin-bottom: 36px;
}


.opennewtown-post-title {
    display: inline-block;

    margin: 0 !important;

    background:
        linear-gradient(
            90deg,
            #3569a3,
            #66CC99
        );

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent !important;
    -webkit-text-fill-color: transparent !important;

    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
}


.opennewtown-post-title-line {
    width: 85px;
    height: 3px;

    margin-top: 15px;

    background: #66CC99;

    border-radius: 10px;
}


.opennewtown-post-body {
      width: min(calc(100% - 80px), 1400px);
    margin-left: auto;
    margin-right: auto;
}
/* Gradient headings within post content */
.opennewtown-post-body h2,
.opennewtown-post-body h3,
.opennewtown-post-body h4,
.opennewtown-post-body h5,
.opennewtown-post-body h6 {
    display: table;

    background: linear-gradient(
        90deg,
        #3569a3,
        #66CC99
    );

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .post-hero {
        min-height: 340px;
    }

    .post-hero-content {
        width: calc(100% - 40px);
        padding: 60px 0 65px;
    }

    .post-hero-title {
        font-size: 38px;
    }

    .opennewtown-post-inner {
        width: calc(100% - 40px);
        margin: 0 auto;
        padding: 65px 0 40px;
    }

    .opennewtown-post-body {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

}
/* =========================================================
   POST IMAGE GALLERY
   ========================================================= */

.opennewtown-post-gallery {
    width: min(calc(100% - 80px), 1400px);
    margin: 25px auto 70px;
    padding: 18px;

    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(53, 105, 163, 0.10);
    border-radius: 22px;

    box-shadow:
        0 18px 50px rgba(20, 45, 55, 0.08);
}

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

/* All photographs use the same dimensions */
.opennewtown-gallery-item,
.opennewtown-gallery-item:first-child,
.opennewtown-gallery-item:nth-child(2),
.opennewtown-gallery-item:nth-child(3),
.opennewtown-gallery-item:nth-child(n+4) {
    position: relative;
    display: block;

    grid-column: auto;
    grid-row: auto;

    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;

    background: #fff;

    box-shadow: 0 4px 14px rgba(20, 45, 55, 0.10);

    transition: transform 0.25s ease;
}

.opennewtown-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hover effect */
.opennewtown-gallery-item:hover {
    transform: translateY(-3px);
}

/* Tablet */
@media (max-width: 1024px) {
    .opennewtown-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 767px) {
    .opennewtown-gallery-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .opennewtown-post-gallery {
        width: calc(100% - 36px);
    }
}