﻿body {
    -ms-background-size: cover;
    background-size: cover;
    -ms-background-position: center;
    background-position: center;
    -ms-background-repeat: no-repeat;
    background-repeat: no-repeat;
    -ms-background-attachment: fixed;
    background-attachment: fixed;
}

/* Public-page parity with ideasfor.events.
   The Angular bundle ships a GLOBAL `.row { margin-left: initial;
   margin-right: initial; }` after Bootstrap, so no row on that site carries
   the -15px gutters. Copying it globally here was tried and reverted — it
   broke the admin and login gutters, which have no counterpart on the legacy
   site (see template-picker.css). Scoping it to the two public roots
   reproduces the legacy result without touching admin.
   This is also what removes the horizontal scrollbar: the logotype banner is
   a .row with no .container to absorb those margins, so it rendered 30px
   wider than the viewport.

   :where() is load-bearing, not decoration. Legacy's selector is a bare
   `.row` — specificity (0,1,0) — which TIES with the `.logotype { margin-
   left: auto; margin-right: auto }` that planners put in their custom Style
   block, and the tie goes to the planner's inline <style> because it is
   injected after these sheets. Writing the scope as a plain descendant
   (`.party-planner-page .row`) raises this to (0,2,0), which beats
   `.logotype`, overwrites those auto margins with `initial`, and left-aligns
   every tenant logo that centres itself this way. :where() contributes zero
   specificity, so the scoped selector still scores (0,1,0) and the tie-break
   behaves exactly as it does on the legacy site. */
:where(.party-planner-page, .pp-footer) .row {
    margin-left: initial;
    margin-right: initial;
}

/* No focus ring on mouse click, ring kept for keyboard focus.
   Bootstrap's stock `a:focus { outline: -webkit-focus-ring-color auto 5px }`
   exists in the legacy bundle too, but ideasfor.events never shows it on
   click: its Angular router swaps the page instantly, destroying the clicked
   anchor before a ring can be perceived. Here the anchor keeps :focus for the
   several seconds the SSR round-trip to the remote database takes, so the
   ring sits visibly around the Home icon / concept tile the whole time.
   :not(:focus-visible) limits the suppression to pointer-initiated focus —
   keyboard tabbing still gets the ring, matching what legacy keyboard users
   get. Scoped to the public roots; admin keeps stock behaviour. */
.party-planner-page a:focus:not(:focus-visible),
.pp-footer a:focus:not(:focus-visible) {
    outline: 0;
}

.party-planner-page > a > .logotype {
    margin-bottom: 18px;
    min-height: 150px;
    -ms-background-size: contain;
    background-size: contain;
    -ms-background-position: center;
    background-position: center;
    -ms-background-repeat: no-repeat;
    background-repeat: no-repeat;
    font-size: 6em;
    line-height: 150px;
    text-align: center;
    color: #b3b3b3;
    text-decoration: none;
}

.party-planner-page > .concepts .pp-category .concept .cover {
    width: 100%;
    height: 150px;
    -ms-background-size: contain;
    background-size: cover;
    /* Tall photos in the wide 150px frame — anchor a quarter of the way down
       so faces stay in view instead of cropping at true center. */
    -ms-background-position: center 25%;
    background-position: center 25%;
    -ms-background-repeat: no-repeat;
    background-repeat: no-repeat;
}

ul#light-gallery-videos {
    padding: 0;
    display: block;
    position: relative;
    float: left;
    clear: left;
    width: 100%;
}

#light-gallery-videos li {
    position: relative;
    display: inline-block;
    padding: 2px;
}

.light-gallery-poster {
    background-color: rgba(0, 0, 0, 0.1);
    bottom: 0;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    -webkit-transition: background-color 0.15s ease 0s;
    -o-transition: background-color 0.15s ease 0s;
    transition: background-color 0.15s ease 0s;
    /*margin-left: 25px;
    margin-right: 25px;*/
}

.light-gallery-poster > .img-container {
    opacity: 0;
    position: absolute;
    top: 40%;
    height: 20% !important;
    width: 100%;
}

.light-gallery-poster > .img-container > img {
    -webkit-transition: opacity 0.3s ease 0s;
    -o-transition: opacity 0.3s ease 0s;
    transition: opacity 0.3s ease 0s;
    height: 100%;
    width: initial;
    margin: 0 auto;
    display: block;
}

.light-gallery-poster:hover > .img-container {
    opacity: 1;
}

app-audio-player {
    display: block;
    position: relative;
}

app-audio-player .controls > button {
    display: inline-block;
    min-width: 60px;
}

app-audio-player .controls > mat-slider {
    display: inline-block;
    min-width: 50%;
}

app-audio-player .controls > button > .mat-button-wrapper {
    line-height: 12px;
    display: block;
}

.pp-documents .pp-actions a:first-child {
    display: inline-block;
}

.pp-documents .pp-actions a:last-child {
    float: right;
}

.pp-share {
    text-align: center;
    padding: 0 10px 30px 10px;
}

.pp-footer .pp-footer-copyright {
    white-space: pre-line;
}

.pp-header {
    font-size:2.3em;
}

.pp-body p {
    text-align: justify;
    font-size: 1.2em;
}

/* The public catalog's find-an-offering box. Styled like the legacy
   form-control so it reads as part of the page, centred and held to a
   readable width. The section wrapper keeps the standard 18px rhythm. */
.pp-catalog-search .row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pp-catalog-search input {
    width: min(420px, 90%);
    padding: 10px 14px;
    font-size: 1.05em;
    border: 1px solid #ddd;
    border-radius: 3px;
    outline: none;
}

.pp-catalog-search input:focus {
    border-color: #b3b3b3;
}

.pp-catalog-search button {
    padding: 10px 14px;
    font-size: 0.95em;
    border: 1px solid #ddd;
    border-radius: 3px;
    background: #f8f8f8;
    cursor: pointer;
}

/* Branding previews on the tenant editor (logo / background).
   A checkerboard behind the image because logos are usually transparent PNGs,
   and a white logo on a white card is indistinguishable from a failed upload.
   contain, not cover: this is a proof of what was uploaded, so seeing the
   whole thing letterboxed beats a confident crop. */
.branding-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    max-width: 320px;
    padding: 6px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fff;
    background-image:
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%),
        linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%);
    background-size: 16px 16px;
    background-position: 0 0, 8px 8px;
}

.branding-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.branding-preview-empty {
    background-image: none;
    background-color: #fafafa;
    border-style: dashed;
    color: #999;
}

/* Category description, under the heading on the public catalog.
   Centred like the heading it belongs to, and held to a readable measure —
   the section is full width, and a paragraph run edge to edge across a
   1900px monitor is unreadable. The last child's margin is dropped so a
   one-paragraph description does not push the offerings grid down. */
.sec-desc {
    max-width: 760px;
    margin: 8px auto 0;
    font-size: 1.05em;
    line-height: 1.6;
    color: #777;
}

.sec-desc > *:last-child {
    margin-bottom: 0;
}

.pp-subheader {
    margin-top: 5px  !important;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.pp-videos header h2 {
    display: none;    
}

.concept {
    margin-bottom: 30px;
}

.pp-concept-caption {
    font-size: 1.2em;
}

.admin-concepts-list table > thead > tr > th:first-child {
    min-width: 70px;
}

.admin-concepts-list .row > .col-md-12 > .input-group {
    display: flex;
}

app-concept-share-creation-mat-dialog .concept-share-playground {
    min-height: 325px;
}

app-concept-share-creation-mat-dialog .concept-share-playground > .fields-area {
    width: 49%;
    display: inline-block;
    vertical-align: top;
    min-height: 325px;
}

app-concept-share-creation-mat-dialog .concept-share-playground > .preview-area {
    width: 49%; 
    display: inline-block; 
    vertical-align: top; 
    min-height: 325px;
}

app-concept-share-creation-mat-dialog .concept-share-playground > .preview-area > iframe {
    width: 100%;
    height: 100vh;
}

app-concept-share-creation-mat-dialog .concept-share-playground > .fields-area > .select-images {
    display: block;
}

app-concept-share-creation-mat-dialog .concept-share-playground > .fields-area > .select-images > .select-image {
    display: inline-block;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    height: 50px;
    width: 100px;
    position: relative;
}

app-concept-share-creation-mat-dialog .concept-share-playground > .fields-area > .select-images > .select-image span {
    display: none;
}

app-concept-share-creation-mat-dialog .concept-share-playground > .fields-area > .select-images > .select-image.selected-image span {
    display: block;
    position: absolute;
    width: 100%;
    text-align: center;
    top: 30%;
    color: #02d802;
    text-shadow: 1px 1px #000000;
    font-size: 25px;
}