/* Masonry Layout */
.aiu-gallery-grid {
    column-count: 3;
    column-gap: 15px;
}

@media(max-width:1024px){
    .aiu-gallery-grid { column-count: 2; }
}

@media(max-width:767px){
    .aiu-gallery-grid { column-count: 1; }
}

.aiu-gallery-item {
    break-inside: avoid;
    margin-bottom: 15px;
    position: relative;
}

.aiu-gallery-item img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

/* Overlay */
.aiu-overlay-icons {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}

/* Bigger Icons */
.aiu-download,
.aiu-share {
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 18px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.aiu-lightbox-icons {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.aiu-lb-download,
.aiu-lb-share {
    background: #000;
    color: #fff;
    padding: 8px 12px;
    font-size: 18px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
}

.copy-wrapper {
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:12px;
    background:#f5f5f5;
    padding:8px;
    border-radius:8px;
}

.copy-wrapper input {
    flex:1;
    border:none;
    background:transparent;
}

.copy-btn {
    padding:6px 12px;
    cursor:pointer;
    border:none;
    background:#000;
    color:#fff;
    border-radius:6px;
}

/* Position Buttons Top Right of Lightbox */
.aiu-lb-wrapper {
    position: fixed;
    top: 20px;
    right: 80px; /* avoid close button */
    display: flex;
    gap: 10px;
    z-index: 999999;
}

.aiu-lb-download,
.aiu-lb-share {
    background: #000;
    color: #fff;
    padding: 10px 14px;
    font-size: 18px;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.aiu-lb-download:hover,
.aiu-lb-share:hover {
    opacity: 0.85;
}

/* ===============================
   SHARE MODAL - POLISHED UI
================================ */

.aiu-share-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.aiu-share-box {
    background: #ffffff;
    padding: 30px 28px;
    border-radius: 14px;
    width: 380px;
    max-width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: aiuFadeIn 0.25s ease;
}

@keyframes aiuFadeIn {
    from { opacity:0; transform: translateY(10px); }
    to { opacity:1; transform: translateY(0); }
}

.aiu-share-close {
    position: absolute;
    top: 14px;
    right: 18px;
    cursor: pointer;
    font-size: 22px;
    font-weight: 600;
    color: #999;
    transition: 0.2s ease;
}

.aiu-share-close:hover {
    color: #000;
}

/* Social Buttons */
.aiu-social {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    color: #fff;
    transition: 0.2s ease;
}

.aiu-social svg {
    flex-shrink: 0;
}

.fb { background: #1877f2; }
.tw { background: #1da1f2; }
.pt { background: #e60023; }

.aiu-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Copy Section */
.copy-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f4f6f8;
    border: 1px solid #e2e5e9;
}

.copy-wrapper svg {
    opacity: 0.6;
}

.copy-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.copy-btn {
    border: none;
    background: #000;
    color: #fff;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s ease;
}

.copy-btn:hover {
    background: #333;
}

.aiu-share svg,
.aiu-lb-share svg {
    display:block;
}

.aiu-hidden {
    display: none;
}
