.priorityposts-container {
    display: flex;
    gap: 20px;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.priority-post h2 {
    font-size: 2.2rem;
    line-height: 2rem;
    margin-bottom: 0rem;
    margin-top: 0.8rem;
}

.priority-post p {
    font-size: 1rem;
    line-height: 1.2rem;
    margin-bottom: 1.8rem;
    margin-top: 0.4rem;
}

.duo-post-content {
    padding: 30px; }

.priority-post {
	border-radius: 22px;
	box-shadow: 0px 3px 6px rgb(0 0 0 / 16%);
		width: 100%;
	flex-direction: column;
	justify-content: space-between;
    margin: 10px 0px 0px 0px;
	overflow: hidden;
	transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.prioritylinkdiv {
    display: flex
;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
}

.prioritylink {
    width: 50%;
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: space-between;
    padding: 0px 0px 0px 0px;

}

.prioritylink a {
    display: flex
;
    align-items: stretch;
    padding: 5px 0px;
}

.prioritylink h5 {
    margin: 0px;
    font-weight: 600;
    font-sixe: 1.2rem;
}
.priority-post .custom-post-title {
    margin-top: 10px;
    margin-bottom: 5px;
}

.prioritypostdiv2 .custom-post-tag {
    color: #287024 !important;
text-transform: uppercase;
    font-size: .7rem;
}

.prioritypostdiv1 .custom-post-tag {
text-transform: uppercase;
    font-size: .8rem;
}


.prioritypostdiv1 .custom-post-main-content a {
    color: var(--theme-text) !important; }

.prioritypostdiv1 .custom-post-title a {
    text-decoration: none;
    color: var(--theme-text) !important; 
}

.prioritypostdiv2 .custom-post-title {
margin-left: 1rem;
    margin-right: 10px;
    margin-top: 10px;
    margin-bottom: 5px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    z-index: 2;
}

.prioritypostdiv2 .custom-post-image {
    background-position: center;
    background-size: cover;
    padding-top: 54%;
    position: relative;
}

.prioritypostdiv1 .custom-post-tag {
  color: var(--theme-text) !important; 
    opacity: 0.8;
}


.featuredposts .contentsectionmore {
    justify-content: flex-end;
    margin-top: auto;
    bottom: 0;
    position: absolute;
    right: 1;
    padding-top: 0px;
    padding-bottom: 20px;
    padding-right: 20px;
}

.prioritypostdiv1 {
	flex: 1;
}
.prioritypostdiv2 {
    flex: 1;
    display: flex
;
    flex-direction: column;
    align-items: flex-end;
}

.secondary-post .custom-post-base-content {
	background-color: none;
	}


.secondary-post-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    min-width: 100%;
}

.secondary-post {
	background-color: #fff;
	border-radius: 22px;
	box-shadow: 0px 3px 6px rgb(0 0 0 / 16%);
	display: flex;
	flex-basis: calc(50% - 20px);
	flex-direction: column;
	justify-content: space-between;
	margin: 10px;
	overflow: hidden;
	transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.prioritypostdiv1 .custom-post-image {
    background-position: center;
    background-size: cover;
    padding-top: 40%;
    position: relative;
}

.priority-post .custom-post-main-content {
  min-height: 20px;
      max-height: 400px;
    height: auto;
    text-decoration: none;
}
    .priority-content_section {
        padding-bottom: 40px;
        padding-top: 40px;
        position: relative;
    }

.prioritygridtitle {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    border-radius: 16px;
    display: flex;
    opacity: 1;
    position: relative;
    text-align: left;
    vertical-align: middle;
    align-content: center;
    align-items: flex-start;
    font-size: var(--fs-h3);
    line-height: 110%;
    margin-top: 10px;
    letter-spacing: .02em;
}


.custom-bg-section {
  position: relative; 
  overflow: hidden;  
}

.custom-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: transform 1.2s ease;
}

.custom-bg-layer.slideleft {
  transform: translateX(-120%);
}
.custom-bg-layer.slideright {
  transform: translateX(120%);
}

.custom-bg-layer {
  animation: slideInBackground 1s forwards ease;
}

.custom-bg-section.loaded .custom-bg-layer {
  transform: translateX(0);
}


@media (max-width: 768px) { 
.priorityposts-container {
    display: flex;
    gap: 10px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    margin-bottom: 70px;
}
    .priority-content_section {
		      margin-bottom: 0px;
        margin-top: 0px;
        padding-bottom: 10px;
        padding-top: 10px;
        position: relative;
    }

.prioritypostdiv1 {
	margin: auto;
    flex: 1;
    margin: 5px;
}

.prioritypostdiv2 {
     margin: auto;
    flex: 1;
    width: 100%;
}

.prioritylink {
    width: 90%;
}

.prioritypostdiv2 .custom-post-title {
   margin-left: 10px; 
   font-size: 1.6rem;
    margin-right: 10px;
    margin-top: 10px;
    margin-bottom: 5px;
    min-height: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
    }
.prioritypostdiv2 .custom-post-title a {
    font-size: 0.9em;
}



.custom-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0px 0px 0px 0px; 
  transform: translateX(-120%);
  z-index: -1;
  transition: transform 1.2s ease;
    }



    .prioritygridtitle {
        border-radius: 0px;
        height: auto;
        opacity: 1;
   padding: 8px 8px 8px 8px;
        margin-bottom: 0px;
        position: relative;
        text-align: center;
        vertical-align: middle;
            width: auto;
        z-index: 9;
    }

	

    .featuredposts .contentsectionmore {
        position: absolute;
        display: flex;
        bottom: 60px;
          left: 0;
        width: 50%;
        justify-content: left;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        align-content: center;
        padding-top: 20px;
        padding-left: 10%;
        padding-bottom: 0px;
        padding-right: 0px;
    }

.secondary-post {
    background-color: #fff;
    border-radius: 22px;
    box-shadow: 0px 3px 6px rgb(0 0 0 / 16%);
    display: flex
;
    flex-basis: calc(50% - 10px);
    flex-direction: column;
    justify-content: space-between;
    margin: 5px;
    overflow: hidden;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}
}