body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f2f2f2;
    color: #222;
}
header {
    background: linear-gradient(90deg, #764ba2 0%, #667eea 100%);
    padding: 2rem;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}
/* Responsive art grid: desktop=3, tablet=2, mobile=1 columns */
.art-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem;
}
@media (max-width: 1024px) {
    .art-grid {
        grid-template-columns: repeat(2, 1fr);
        margin: 1.3rem;
    }
}
@media (max-width: 600px) {
    .art-grid {
        grid-template-columns: 1fr;
        margin: 0.5rem;
    }
}
.art-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
}
.art-card:hover {
    box-shadow: 0 8px 24px rgba(118,75,162,0.15);
}
/* Multi-image gallery in each card */
.gallery-thumb {
    width: 100%;
    height: 180px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}
.gallery-thumb img {
    height: 180px;
    object-fit: cover;
    background: #ececec;
    min-width: 100%;
    cursor: pointer;
    transition: filter 0.15s;
    scroll-snap-align: start;
}
.gallery-thumb img:hover {
    filter: brightness(0.94);
}
/* Thumbnail previews for multiple images (edit/add forms) */
.thumb-multi {
    max-width: 75px;
    max-height: 50px;
    margin-right: 7px;
    border-radius: 5px;
    border: 2px solid #ececec;
    cursor: pointer;
}
.thumb-multi.active {
    border-color: #764ba2;
}
.art-card-description {
    padding: 1rem;
    flex-grow: 1;
}
.art-card-description p.desc {
    font-size:1em;
    color:#414141;
    margin:0.5em 0 0.7em 0;
    white-space: pre-line;
}
.bid-btn {
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 0 0 12px 12px;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
}
.bid-btn:hover {
    background: #5a67d8;
}
.bid-btn-disabled {
    background: #e5e5e5 !important;
    color: #aaa !important;
    cursor: not-allowed !important;
    border: 1px solid #cecece !important;
    opacity: 0.7;
    pointer-events: none;
}
.cta {
    margin: 2rem auto;
    text-align: center;
}
.cta button {
    background: #764ba2;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    cursor: pointer;
}
.cta button:hover {
    background: #667eea;
}
.login-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(118,75,162,0.11);
    max-width: 340px;
    margin: 40px auto 0 auto;
    padding: 2rem 2.5rem 2.2rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* Signup/login container and title */
.login-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(55, 100, 255, 0.16);
    padding: 2.3rem 2.3rem 1.5rem 2.3rem;
    max-width: 470px;
    margin: 3.3rem auto;
}
@media (max-width: 700px) {
    .login-container { padding: 1.1rem; margin: 1rem;}
    .login-title { font-size: 1.4rem;}
}
.login-title {
    font-size: 2.05rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.25rem;
    color: #4324b9;
}
.login-subtitle {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 1.2rem;
    text-align: center;
}
/* Form labels and input styling */
label, .form-label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: #3950bc;
}
input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 0.7rem;
    margin-bottom: 1.2rem;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}
.btn-login, .btn-success {
    background: linear-gradient(90deg,#7b54fe 0,#3550dc 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 0.7rem 0;
    width: 100%;
    font-size: 1.13rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1.2rem;
    transition: background 0.25s;
}
.btn-login:hover, .btn-success:hover {
    background: linear-gradient(90deg,#93a3ff 0,#5886f9 100%);
}
.btn-outline-primary {
    background: #ede8fe;
    color: #4324b9;
    border: 1.1px solid #4324b9;
}
.btn-outline-primary:hover {
    background: #dfe5fd;
    color: #2c259c;
    border-color: #2c259c;
}
.links {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.links a {
    margin-right: 1.4rem;
    color: #2544cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.97rem;
}
.links a:hover {
    text-decoration: underline;
    color: #667eea;
}
.statement {
    background: #efeffe;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 1.02em;
    color: #666;
    text-align: center;
    margin-top: 1.1rem;
}
.alert {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 0.75em 1em;
    font-size: 0.99em;
}
.alert-danger {
    background: #fff3f1;
    color: #c0392b;
    border: 1px solid #ffd5d5;
}
.alert-success {
    background: #e8ffec;
    color: #256029;
    border: 1px solid #b4e2c7;
}
.asterisk {
    color: #dc3545;
    font-weight: bold;
    margin-left: 2px;
}
.agreement-box {
    background: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.98em;
    margin-bottom: 1rem;
    max-height: 240px;
    overflow-y: auto;
}
.pw-note {
    color: #0a58ca;
}
.edit-form, .add-form {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 470px;
    width: 92vw;
    max-height: 95vh;
    overflow-y: auto;
    background: #f9f6fd;
    border-radius: 12px;
    padding: 20px 22px 20px 22px;
    box-shadow: 0 4px 24px rgba(118,75,162,0.19);
    z-index: 1100;
}
.edit-form input, .edit-form textarea, .add-form input, .add-form textarea {
    margin-bottom: 8px;
    padding: 6px;
    border: 1px solid #bbb;
    border-radius: 5px;
    font-size: 1em;
    width: 95%;
}
.edit-form label, .add-form label {
    font-weight: bold;
    margin-bottom: 3px;
}
.edit-form .form-actions, .add-form .form-actions {
    margin-top: 7px;
    display: flex;
    gap: 12px;
}
.save-btn {
    background: #764ba2;
    color: #fff;
    border: none;
    padding: 0.55em 1.05em;
    border-radius: 7px;
    font-weight: bold;
    cursor: pointer;
}
.save-btn:hover {
    background: #667eea;
}
.cancel-edit-btn {
    background: #aaa;
    color: #fff;
    border: none;
    padding: 0.55em 1.05em;
    border-radius: 7px;
    font-weight: bold;
    cursor: pointer;
}
.delete-btn {
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 0.55em 1.05em;
    border-radius: 7px;
    font-weight: bold;
    cursor: pointer;
}
.delete-btn:hover {
    background: #b71c1c;
}
/* Lightbox styles for multi-image lightbox */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(26,22,40,0.92);
    align-items: center; justify-content: center;
}
.lightbox-modal .lightbox-gallery {
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-modal img {
    max-width: 94vw;
    max-height: 82vh;
    border-radius: 16px;
    box-shadow: 0 12px 50px 0 #111a;
}
.lightbox-modal .close-btn {
    position: absolute;
    top: 40px;
    right: 50px;
    font-size: 3rem;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    font-family: inherit;
}
.lightbox-modal .nav-btn {
    background: rgba(100,100,120,0.4);
    color: #fff;
    border: none;
    font-size: 2.2rem;
    border-radius: 30%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    position: relative;
    z-index: 1002;
    margin: 0 10px;
}
.img-preview {
    width: 100%;
    max-width: 350px;
    max-height: 180px;
    object-fit: cover;
    margin-bottom: 8px;
    border-radius: 7px;
    background: #e9e9e9;
}
