
.plw-grid { display: block; }

.plw-sizer, .plw-item { width: calc(25% - var(--plw-gap)); margin-bottom: var(--plw-gap); }

@media (max-width:1024px) { .plw-sizer, .plw-item { width: calc(33.333% - var(--plw-gap)); } }

@media (max-width:768px) { .plw-sizer, .plw-item { width: calc(50% - var(--plw-gap)); } }

.plw-item { overflow:hidden; position:relative; border-radius:var(--plw-radius); opacity:0; transform:translateY(20px); filter:blur(4px); transition:all 0.6s ease; }

.plw-item img { width:100%; height:auto; display:block; border-radius:inherit; transition:transform 0.6s ease; }

.plw-item:hover img { transform:scale(1.15); }

.plw-item::before { content:''; position:absolute; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0); border-radius:inherit; transition:background 0.3s ease; z-index:1; }

.plw-item:hover::before { background:rgba(0,0,0,0.25); }

/* Title Overlay */
.plw-title { position:absolute; bottom:10px; left:50%; transform:translateX(-50%); color:#fff; background:transparent; padding:5px 10px; border-radius:0; opacity:0; transition:opacity 0.3s ease, transform 0.3s ease, text-shadow 2s ease, color 2s ease; white-space:nowrap; }
.plw-item:hover .plw-title, .plw-item:focus .plw-title { opacity:1; transform:translateX(-50%) translateY(-5px); color:#FFD700; text-shadow:0 0 5px #FFD700,0 0 10px #FFD700,0 0 15px #FFD700,0 0 20px #FFD700; }


/* =========================
   Big Image Container (Popup)
========================= */

.big-image-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 1000px;
    background: #fff;
    border-radius: 12px;
    z-index: 9999;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    animation: fadeIn 0.3s ease forwards;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
}
.big-image-container.active { display: flex; }
.big-image-container img {
    width: 60%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.big-image-container .luxury-meta {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
}

/* User Info */
.luxury-user {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.big-image-container .luxury-avatar {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    margin-right: 10px;
    object-fit: cover;
}
.luxury-user-info h4 { margin: 0; font-size: 18px; }
.luxury-user-info p { margin: 0; font-size: 14px; color: #666; }

/* Comments */
.luxury-comments {
    margin-top: 15px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 14px;
}
.luxury-comments ul { padding-left: 0; list-style: none; }
.luxury-comments li { margin-bottom: 8px; }

/* Close Button — Edge + Smooth Spin */
.big-image-container .close-btn {
    position: absolute;
    top: 8px;            /* moved closer to edge */
    right: 8px;          /* moved closer to edge */
    font-size: 30px;
    font-weight: 600;
    color: #000;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 10001;
    line-height: 1;
    transition: transform 0.5s ease, color 0.3s ease;
}

/* When popup opens — gentle entry spin */
.big-image-container.active .close-btn {
    animation: spinIn 0.6s ease both;
}

/* Hover spin + soft glow */
.big-image-container .close-btn:hover {
    transform: rotate(180deg) scale(1.15);
    color: #d90000; /* subtle red tint */
    text-shadow: 0 0 6px rgba(217, 0, 0, 0.3);
}

/* Spin entry animation */
@keyframes spinIn {
    from {
        transform: rotate(-180deg) scale(0.8);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}


/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   Responsive Adjustments
========================= */
@media screen and (max-width: 1024px) {
    .big-image-container {
        flex-direction: column;
        width: 85%;
        padding: 20px;
    }
    .big-image-container img {
        width: 100%;
        margin-bottom: 15px;
    }
}
@media screen and (max-width: 768px) {
    .big-image-container {
        flex-direction: column;
        width: 95%;
        padding: 15px;
        gap: 15px;
    }
    .big-image-container img { width: 100%; margin-bottom: 10px; }
    .luxury-user-info h4 { font-size: 16px; }
    .luxury-user-info p { font-size: 12px; }
}

/* =========================
   Comment Box
========================= */
.luxury-comment-box {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 5px 10px;
    background: #fff;
    max-width: 100%;
}
.luxury-comment-box textarea {
    flex: 1;
    border: none;
    resize: none;
    font-size: 14px;
    padding: 8px 10px;
    outline: none;
    max-height: 120px;
    background: transparent;
}
.gallery-btn,
.action-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.gallery-btn {
    background: #f5f5f5;
    border: none;
    margin-right: 6px;
}
.action-btn {
    background: #000;
    color: #fff;
    border: none;
    margin-left: 6px;
    transition: all 0.3s ease;
}
.action-btn:hover { background: #333; }

/* =========================
   Mic Wave Effect
========================= */
.mic-btn.active {
    position: relative;
}
.mic-btn.active .mic-wave {
    position: absolute;
    border: 2px solid rgba(0,0,0,0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* Mic Click Effect */
.mic-btn.active-click {
    border-radius: 8px;
    background-color: red;
    animation: plink 0.3s ease;
}
.mic-btn.active-click .mic-wave { display: none; }
@keyframes plink {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Uploaded Media Preview */
.uploaded-media-preview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.uploaded-media-preview img,
.uploaded-media-preview video {
    max-width: 80px;
    max-height: 80px;
    border-radius: 8px;
    object-fit: cover;
}


.plw-video-thumb {
    position: relative;
    width: 100%;
    padding-top: 150%; /* portrait ratio 2:3 */
    background-size: cover;
    background-position: center;
    border-radius: var(--plw-radius);
    overflow: hidden;
}

.plw-video-thumb .plw-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
}

.plw-audio-overlay audio {
    width: 100%;
    margin-top: 5px;
}


/* === Arrow Overlay Button (Bottom-Right, white, top-left arrow) === */
.plw-overlay-btn {
  position: absolute;
  bottom: 15px;   /* Bottom */
  right: 15px;    /* Right */
  width: 48px;    /* Desktop default */
  height: 48px;
  border: none;
  border-radius: 4px; /* Slightly sharp edges */
  background: rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 99;
}

.plw-overlay-btn i {
  color: #fff;        /* White arrow */
  font-size: 18px;
  transform: rotate(-135deg); /* Top-left ↖ arrow */
  transition: transform 0.3s ease;
}

.plw-overlay-btn:hover {
  background: rgba(255,255,255,0.45);
  transform: scale(1.08);
}

.plw-overlay-btn:hover i {
  transform: translate(-3px, -3px) rotate(-135deg); /* Preserve ↖ on hover */
}

/* === Responsive Sizes === */
@media (max-width: 1024px) { /* Tablet */
  .plw-overlay-btn {
    width: 40px;
    height: 40px;
  }
  .plw-overlay-btn i {
    font-size: 16px;
  }
}

@media (max-width: 768px) { /* Mobile */
  .plw-overlay-btn {
    width: 36px;
    height: 36px;
  }
  .plw-overlay-btn i {
    font-size: 14px;
  }
}




.plw-audio-overlay {
  position: absolute;
  bottom: 15px;
  left: 15px;
  width: 120px; /* adjust as you want */
  height: 120px;
  backdrop-filter: blur(12px);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.plw-audio-overlay .plw-album-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}

.plw-audio-overlay .plw-play-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255,255,255,0.3);
  border: none;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
