/* Post */
.post {
    height: 150px;
    position: relative;
    width: 50%;
    background-color: #1C1A1B;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    animation: deradiate 0.8s ease-in forwards;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}

.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* semi-transparent black */
    z-index: 2;
    border-radius: 8px;
    transition: background-color 0.4s ease;
}

.post:hover::before {
    background-color: rgba(0, 0, 0, 0); /* remove overlay on hover */
}

.post img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 545px;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
    z-index: 1;
}
.post:hover {
    height: 545px;
    animation: radiate 0.5s ease-out forwards;
}
.post:hover img {
    transform: translateY(0);
}
.post h3,
.post p {
    position: relative;
    z-index: 3;
    color: white;
    padding-top: 10px;
    word-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
}
.post:hover h3,
.post:hover p {
    max-height: none;
    text-overflow: unset;
    -webkit-line-clamp: unset;
    line-clamp: 4;

}

/* vPost */
.vpost {
  width: 50%;
  position: relative;
  background-color: #1C1A1B;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  animation: deradiate 0.8s ease-in forwards;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  z-index: 2;
}

.vpost:hover {
  animation: radiate 0.5s ease-out forwards;
}

.video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0 0 8px 8px;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 0 0 8px 8px;
}

.vpost-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  border-radius: 8px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.vpost:hover .vpost-overlay {
  opacity: 0;
}

.vpost h3 {
  position: relative;
  z-index: 3;
  margin-top: 10px;
  color: white;
}

.vpost-text {
  background-color: black;
  color: white;
  padding: 0.75em 1em;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px 8px 0 0; /* matches .spost or others if needed */
}

.vpost-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  z-index: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* tPost */
.tpost {
    width: 50%;
}
.tpost h1 {
    font-family: 'TF', Arial, sans-serif;
    font-size: clamp(2rem, 10vw, 10vh);
    margin: 0;
    line-height: 1;
    color: #07F468;
}

/* sPost (Spotify Embed) */
.spost {
    position: relative;
    width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: height 0.5s ease-in-out; 
    display: flex;
    flex-direction: column; 
    justify-content: flex-start;
	animation: deradiate 0.8s ease-in forwards;
}

.spost iframe {
    max-width: 100%;
    height: auto;
	position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
	z-index: 255;
}

.spost:hover {
	animation: radiate 0.5s ease-out forwards;
}

/* iPost */
.ipost {
    width: 50%;
}
.ipost img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    z-index: 1;
    position: relative;
}

/* insta */
.instapost {
    position: relative;
    width: 50%;
    height: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: height 0.5s ease-in-out; 
    display: flex;
    flex-direction: column; 
    justify-content: flex-start;
	animation: deradiate 0.8s ease-in forwards;
}

.instapost iframe {
    max-width: 100%;
    height: auto;
	position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
	z-index: 255;
}

.instapost:hover {
	animation: radiate 0.5s ease-out forwards;
}

.instapost-text {
  background-color: white;
  color: black;
  padding: 0.75em 1em;
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px 8px 0 0; /* match border-radius with .spost if needed */
}

.insta-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  z-index: 0;
}

.insta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  border-radius: 0 0 8px 8px;
  z-index: 2;
  transition: opacity 0.4s ease;
  pointer-events: none; /* allow hover to reach iframe */
}

.instapost:hover .insta-overlay {
  opacity: 0;
}


.insta-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  border-radius: 0 0 8px 8px;
  z-index: 3;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* === Glow & Overlay for .ipost === */

.ipost:hover {
    animation: radiate 0.5s ease-out forwards;
}

/* === Glow & Overlay for .instapost === */
.instapost::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    border-radius: 0 0 8px 8px;
    transition: background-color 0.4s ease;
}

.instapost:hover::before {
    background-color: rgba(0, 0, 0, 0);
}

.instapost:hover {
    animation: radiate 0.5s ease-out forwards;
}
