.block-updates {
    margin-top: 0 !important;
}

.block-updates .updates-title {
    position: sticky;
    top: 0px; 
	margin-right: var(--wp--style--root--padding-right);
    margin-left: var(--wp--style--root--padding-left);
}

.block-updates .updates-title-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 100vh;
	margin: 0 auto -100vh auto;
}

.block-updates h2 {
    margin: 0 !important;
	padding: 0 !important;
}

.updates-inner[data-horizontal-scroll-wrap] {
  overflow: hidden;
  min-height: 100dvh;
  display: flex;
padding-left: 75vw;  /* Add left space */
  padding-right: 15vh; /* Add right space */
}

.updates-inner-scroll[data-horizontal-scroll-panel] {
      display: grid;
    grid-auto-columns: 40vh;
    grid-auto-flow: column;
    height: 75vh;
    gap: 10vh;
    align-items: center;
    max-height: 50rem;
    margin: auto;
}

.update-card-wrapper {
    align-self: flex-end;
	    max-height: 40rem;
}
.update-card-wrapper:nth-of-type(even) {
    align-self: flex-start;
}


.update-card-wrapper:nth-of-type(4n+1) {
    transform: rotate(-5deg);
}
.update-card-wrapper:nth-of-type(4n+2) {
    transform: rotate(5deg);
}
.update-card-wrapper:nth-of-type(4n+3) {
    transform: rotate(-3deg);
}
.update-card-wrapper:nth-of-type(4n+4) {
    transform: rotate(4deg);
}

h2.wp-block-heading.alignfull.has-fit-text {
    padding: 3rem;
}

.update-front-title {
    padding: 2rem;
}

.update-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.update-front-title h3 {
    margin: 1rem 0 0 0 !important;
}

.update-front figure {
  position: relative;
  width: 100%;
  padding-bottom: 65%; /* 16:9 ratio (9/16 * 100) */
    margin: 0;
}

.update-front figure img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.update-card-wrapper {
    position: relative;
    aspect-ratio: 2 / 3;
}

.update-card {
  position: absolute;
  width: 100%;
  height: 100%;
  perspective: 100vw;
}

.update-content {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 1s;
  transform-style: preserve-3d;
}

.update-card.active .update-content {
  transform: rotateY( 180deg ) ;
  transition: transform 0.5s;
}

.update-front,
.update-back {
  position: absolute;
  height: 100%;
  width: 100%;
  background: #fff;
  backface-visibility: hidden;
display: flex;
flex-direction: column;
}

.update-back {
    padding: 2rem;
	z-index: 2;
    box-sizing: border-box;
}

.update-front {
    cursor: pointer;
    justify-content: space-between;
}

.update-back {
    transform: rotateY(180deg);
}
.update-back .wp-block-button {
    margin: auto auto 0 auto;
}

.update-front img {
    width: 100%;

}

.update-card img {
    transition: .3s ease-in-out;
}

.update-card:hover img {
    transform: scale(1.05);
}

.update-card figure {
    overflow: hidden;
}



.close-card {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 1rem;
    top: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    background: #fff;
    border-radius: 100px;
    color: #FFF;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.707 6.70703L6.70703 18.707L5.29297 17.293L17.293 5.29297L18.707 6.70703Z' fill='%23000000'/%3E%3Cpath d='M18.707 17.293L17.293 18.707L5.29297 6.70703L6.70703 5.29297L18.707 17.293Z' fill='%23000000'/%3E%3C/svg%3E%0A");    background-repeat: no-repeat;
    background-position: center;
    background-size: 75%;
}


.update-front-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.update-front-content h4 {
    margin: 2rem 0;
}
.update-front-content p b {
    display: block;
}
.update-front-content p:last-of-type {
    margin-bottom: 3rem;
}
.update-front-content .wp-block-button {
    margin: auto 0 0 0;
}

.image-as-background .update-front figure {
    padding-bottom: 0;
    height: 100%;
    position: absolute;
}

.image-as-background .update-front-title {
    position: relative;
    z-index: 1;
    background: linear-gradient(rgb(0 0 0 / 0%), rgb(0 0 0 / 47%));
    color: #fff;
    margin-top: auto;
    padding-top: 5rem;
}






/* Mobile */

.dropping-stack {
  grid-column-gap: 2em;
  grid-row-gap: 2em;
  flex-flow: column;
  align-items: center;
  display: flex;
}

.dropping-stack__collection {
  padding-bottom: 3rem;
  padding-right: 3rem;
}

.dropping-stack__list {
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
}

.dropping-stack__item {
  will-change: transform, opacity;
  -webkit-user-select: none;
  user-select: none;
  position: absolute;
}

.dropping-stack__item:nth-child(1) {
  position: relative;
}

.dropping-stack-card {
  background-color: transparent !important;
  width: 70vw;
  position: relative;
  overflow: visible;
    max-width: 25rem;
}

.dropping-stack-card__before {
  padding-top: 150%;
}

.dropping-stack-card__content {
  flex-flow: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
}



.dropping-stack-card__start {
  justify-content: space-between;
  display: flex;
}

.dropping-stack__item:nth-of-type(4n+1) .dropping-stack-card {
    transform: rotate(-2.5deg);
}
.dropping-stack__item:nth-of-type(4n+2) .dropping-stack-card{
    transform: rotate(2.5deg);
}
.dropping-stack__item:nth-of-type(4n+3) .dropping-stack-card{
    transform: rotate(-2.5deg);
}
.dropping-stack__item:nth-of-type(4n+4) .dropping-stack-card{
    transform: rotate(2.5deg);
}



.dropping-stack {
	display: none;
}


@media (max-width: 900px) {
	.dropping-stack {
		display: block;
	}
	.updates-inner {
		display: none !important;
	}
	
	.block-updates .updates-title {
		position: relative;
	}

	.block-updates .updates-title-inner {
		margin: 6rem 0;
		min-height: unset;
	}
	.update-front-title {
    padding: 1.75rem;
}

.update-back {
    padding: 1.75rem;
}

}

