/* ==========================================
   CAPTURE THE MOMENT - STYLESHEET
   ========================================== */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
    color: #333333;
}

/* Header */
.capture-header {
    text-align: center;
    padding: 40px 20px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #eaeaea;
}

.btn-back {
    display: inline-block;
    text-decoration: none;
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.btn-back:hover { color: #333333; }

.capture-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #333333;
}

.capture-header p {
    font-size: 14px;
    color: #666666;
    margin: 0;
}

/* Upload Section */
.upload-section {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.upload-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.limit-info {
    font-size: 12px;
    color: #888888;
    margin-bottom: 20px;
}

.capture-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
}

/* Tombol */
.btn-camera, .btn-upload {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-sizing: border-box;
}

.btn-camera {
    background-color: #555555;
    color: #ffffff;
}

.btn-camera:hover { background-color: #d4af37; }

.btn-upload {
    background-color: #d4af37; /* Aksen emas */
    color: #ffffff;
    margin-bottom: 10px;
}

.btn-upload:hover { background-color: #b5952f; }

.btn-upload:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.btn-cancel {
    background: none;
    border: none;
    color: #888888;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
}

/* Preview Image */
.preview-container {
    margin-top: 20px;
}

#image-preview {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Galeri Tamu (Masonry Grid) */
.guest-gallery-section {
    padding: 0 20px 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.guest-gallery-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}

.masonry-grid {
    column-count: 3;
    column-gap: 15px;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 15px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.masonry-item img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.masonry-item .uploader-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    backdrop-filter: blur(2px);
}

.loading-text {
    text-align: center;
    color: #888888;
    column-span: all;
}

/* Responsif Mobile */
@media (max-width: 768px) {
    .masonry-grid { column-count: 2; }
}
@media (max-width: 480px) {
    .masonry-grid { column-count: 1; } /* Bisa diubah ke 2 jika ingin foto lebih kecil di HP */
}