﻿
/*body {
    font-family: Arial,Helvetica,sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 20px;
}

.wrap {
    max-width: 1000px;
    margin: auto;
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
}
*/
.heading {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin-bottom: 14px;
}

.button-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.btn-upload {
    padding: 10px 16px;
    border: 1px solid #d4d4d4;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 15px;
    cursor: pointer;
    height: 50px;
    /*min-width:170px;*/
    text-align: center;
    line-height: 1.25;
}

    .btn-upload:hover {
        background: #f5f5f5;
    }

.btn-sub {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.hint {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.photo-row {
    /*display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    touch-action: pan-x;
    min-height: 116px;

    */

    display: flex;
    flex-wrap: wrap;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: normal;
    touch-action: pan-y;
    max-height: 240px;
    gap: 10px;
    padding: 6px 0 10px 0;
    -webkit-overflow-scrolling: touch;
}

.photo-item {
    /*width: 110px;
    height: 110px;*/
    width: 100px;
    height: 100px;
    flex: 0 0 auto;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #eee;
    cursor: grab;
    /*touch-action: pan-x;*/
    touch-action: auto;
}

    .photo-item.dragging {
        opacity: .45;
        cursor: grabbing;
    }

    .photo-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        pointer-events: none;
    }

.remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    line-height: 22px;
    padding: 0;
    z-index: 2;
}

.photo-number {
    position: absolute;
    left: 4px;
    bottom: 4px;
    min-width: 22px;
    height: 22px;
    border-radius: 20px;
    background: rgba(0,0,0,.65);
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    padding: 0 6px;
    box-sizing: border-box;
    z-index: 2;
    pointer-events: none;
}

.submit-btn {
    margin-top: 18px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    background: #0b1730;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.msg {
    display: block;
    margin-top: 12px;
    color: green;
    font-weight: 600;
}

@media (max-width:700px) {
    .button-row {
        overflow-x: auto;
    }

    .btn-upload {
        flex: 0 0 auto;
        /*min-width:155px;*/
        height: 50px;
    }
}
