.err_field {
    color: red;
    font-size: 15px;
    line-height: 17px;
}

.succ_field {
    color: green;
}

.nl2br {
    white-space: pre-line;
}

.cart_holder {
    position: fixed;
    top: 20px;
    right: 10px;
    font-size: 28px;
    cursor: pointer;
    z-index: 20;
}

.pick_holder {
    position: fixed;
    top: 70px;
    right: 43px;
    font-size: 28px;
    cursor: pointer;
    z-index: 20;
}

.cart_holder:hover, .pick_holder:hover {
    color: green;
}

.cart_holder_cnt_holder {
    display: inline-block;
    background-color: white;
    font-size: 14px;
    border: 1px solid grey;
    position: relative;
    border-radius: 14px;
    padding: 3px 5px;
    bottom: 21px; 
    right: 14px;
    min-width: 28px;
    text-align: center;
    font-weight: bold;
}

.photo_notes {
    border: 1px solid lightgrey;
    padding: 2px 6px;
    border-radius: 10px;
    background-color: white;
    width: 100%;
}

.photo_one_tile {
    padding: 20px 10px 10px 10px;
    cursor: pointer;
    border-radius: 10px;
}

.photo_one_tile:hover {
    background-color: #deeff5;
}

.client_image_xs {
    max-width: min(100%, 200px);
    max-height: 200px;
    border: 1px solid lightgrey;
}

/* --- Adjustable photo gallery (storefront) ------------------------------- */
/* The thumbnails tile into a responsive grid whose cell size is driven by the
   --ae-thumb CSS variable. The "Photo size" range slider sets that variable
   (and saves it to localStorage), so dragging it makes the photos bigger or
   smaller AND re-flows how many fit per row — which removes the big gaps that
   the old fixed 4-column Bootstrap layout left between small images. */
.ae_photo_grid {
    display: grid;
    /* Fixed-width tiles (NOT minmax(..,1fr)) so each photo is exactly the
       slider's size and grows pixel-for-pixel. With 1fr the columns stretched
       to fill the row, so the photo size only changed when a whole column
       dropped out — between those jumps the slider did nothing (the "stops
       getting larger" plateau). min(.., 100%) keeps a single column from
       overflowing a narrow screen. justify-content centres the leftover gap. */
    grid-template-columns: repeat(auto-fill, min(var(--ae-thumb, 200px), 100%));
    justify-content: center;
    gap: 6px;
    width: 100%;
}
/* Folder/section headings rendered inside the grid must span the whole row. */
.ae_photo_grid .photo_folder {
    grid-column: 1 / -1;
}
/* Neutralise the Bootstrap col-* widths so the grid alone controls sizing. */
.ae_photo_grid .photo_one_tile {
    max-width: none;
    width: auto;
    flex: none;
    padding: 8px;
}
/* The inline min-height:170px reserved space for the old fixed size; let the
   square image box below reserve space instead so small thumbs don't leave a
   tall empty strip. */
.ae_photo_grid .photo_one_tile > div {
    min-height: 0 !important;
}
/* Uniform square tiles, regardless of photo orientation. Put the square on the
   (block) .client_image_holder — aspect-ratio is reliable on a normal box — and
   let the <img> fill it. Forcing the square on the <img> itself (a replaced
   element with its own intrinsic ratio) was unreliable: landscape photos kept
   their natural short height, sat at the top of the row, and left a white block
   below them, while portrait photos happened to fill the height. Now BOTH
   orientations render as equal squares with the whole image shown, centred. */
.ae_photo_grid .client_image_holder {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.ae_photo_grid .client_image_xs {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;   /* whole image, centred; no cropping */
    border: 1px solid lightgrey;
}

/* The "Photo size" slider control above the gallery. */
.ae_size_bar {
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ae_size_bar input[type=range] {
    flex: 1;
    cursor: pointer;
}
.ae_size_ico {
    color: #9aa0a6;
    line-height: 1;
}
.ae_size_ico_sm { font-size: 11px; }
.ae_size_ico_lg { font-size: 20px; }

.client_image_preview {
    max-width: min(100%,600px); 
    max-height: min(100%,600px);    
    border: 1px solid lightgrey;
}

.client_main_image {
    width: 100%; 
    max-width: 600px; 
    max-height: 400px;
    border: 1px solid lightgrey;
}

.ph_1_chk {
    display: inline-block;
    width: 24px;
    height: 24px;
    cursor: pointer;
    position: relative;
    top: 6px;
    margin-right: 7px;
}

.ph_1_cnt {
    padding: 2px 5px;
    position: relative;
}

body.modal-open {
    overflow: hidden;
    position: inherit;
}

.ph_1_bg_gr {
    background-color: #eef7fa;
}

.client_image_holder {
    position: relative;
    display: inline-block;
}

.client_image_selected {
    position: absolute;
    right: -25px;
    top: -15px;
    padding: 2px 6px;
    border: 2px solid grey;
    background-color: white;
    color: black;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;   
}

#cart_area_holder {
    display: none;
}

.cart_item {
    cursor: pointer;
}

.cart_item td {
    padding: 5px 10px;
}


.cart_highlighted {
    background-color: #deeff5;
}

#checkout_btn {
    padding: 10px 50px;
}

.login_switch_active {
    background-color: #002752;
    color: white;
}

.login_switch_area {
    font-weight: bold;
    font-size: 15px;
    text-transform: uppercase;
    
}

.login_switch_area div {
    border: 1px solid grey;
    padding: 4px 10px;
}

.login_fields, .reg_fields, .forgot_pass_fields {
    height: 27px;
    padding: 4px 5px;
    font-size: 15px;
}

.login_switch {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 18px;
}

.event-photo-id {
    position: absolute;
    left: 0;
    margin-left: 15px;
}
