/* Christmas theme – loaded after css/styles.css only when the admin turns it on */
.theme-christmas {
    --xmas-red: #b3122b;
    --xmas-dark-red: #7a0f1a;
    --xmas-green: #146b3a;
    --xmas-gold: #ffc800;
}

/* Navbar: deep red with a festive garland line underneath */
.theme-christmas #mainNav,
.theme-christmas #mainNav.navbar-shrink {
    background-color: var(--xmas-dark-red) !important;
}
/* (the old dotted garland was replaced by the string of lights below) */
.theme-christmas #mainNav .navbar-nav .nav-item .nav-link:hover,
.theme-christmas #mainNav .navbar-nav .nav-item .nav-link:active {
    color: var(--xmas-gold) !important;
}

/* Masthead: red/green tint over the existing header image */
.theme-christmas header.masthead {
    position: relative;
}
.theme-christmas header.masthead::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(179, 18, 43, .55), rgba(20, 107, 58, .45));
    pointer-events: none;
}
.theme-christmas header.masthead > .container {
    position: relative;
    z-index: 1;
}

/* Page background */
/* Page background: cream/green gradient + scattered cute trees, presents, snowmen, candy canes, stars */
.theme-christmas .bg-light,
.theme-christmas .page-section.bg-light {
    background-color: #fff6ee !important;
    background-image:
        url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='400'%20height='400'%20viewBox='0%200%20400%20400'%3E%3Cg%20opacity='.4'%3E%3Cg%20transform='translate(20,30)%20rotate(-5)%20scale(0.6)'%3E%3Crect%20x='43'%20y='108'%20width='14'%20height='20'%20rx='2'%20fill='%237a4a21'/%3E%3Cg%20stroke='%230f5a30'%20stroke-width='2'%20stroke-linejoin='round'%3E%3Cpolygon%20points='50,62%2010,112%2090,112'%20fill='%231f8f4e'/%3E%3Cpolygon%20points='50,36%2018,82%2082,82'%20fill='%2327a85c'/%3E%3Cpolygon%20points='50,12%2028,52%2072,52'%20fill='%232fbf6a'/%3E%3C/g%3E%3Cpolygon%20points='50,1%2052.35,6.76%2058.56,7.22%2053.8,11.24%2055.29,17.28%2050,14%2044.71,17.28%2046.2,11.24%2041.44,7.22%2047.65,6.76'%20fill='%23ffc800'/%3E%3Ccircle%20cx='30'%20cy='102'%20r='4.5'%20fill='%23e63950'/%3E%3Ccircle%20cx='52'%20cy='96'%20r='4.5'%20fill='%23ffc800'/%3E%3Ccircle%20cx='71'%20cy='104'%20r='4.5'%20fill='%234fc3f7'/%3E%3Ccircle%20cx='40'%20cy='73'%20r='4'%20fill='%23ffc800'/%3E%3Ccircle%20cx='61'%20cy='68'%20r='4'%20fill='%23e63950'/%3E%3C/g%3E%3Cg%20transform='translate(250,20)%20rotate(4)%20scale(0.55)'%3E%3Cg%20fill='%23fff'%20stroke='%239cc3de'%20stroke-width='2'%3E%3Ccircle%20cx='45'%20cy='102'%20r='27'/%3E%3Ccircle%20cx='45'%20cy='64'%20r='20'/%3E%3Ccircle%20cx='45'%20cy='34'%20r='14'/%3E%3C/g%3E%3Cg%20stroke='%237a4a21'%20stroke-width='3'%20stroke-linecap='round'%3E%3Cline%20x1='27'%20y1='62'%20x2='8'%20y2='50'/%3E%3Cline%20x1='63'%20y1='62'%20x2='82'%20y2='50'/%3E%3C/g%3E%3Crect%20x='33'%20y='5'%20width='24'%20height='15'%20rx='2'%20fill='%23222'/%3E%3Crect%20x='33'%20y='14'%20width='24'%20height='3.5'%20fill='%23c4152e'/%3E%3Crect%20x='27'%20y='19'%20width='36'%20height='4'%20rx='2'%20fill='%23222'/%3E%3Ccircle%20cx='40'%20cy='32'%20r='1.9'%20fill='%23222'/%3E%3Ccircle%20cx='50'%20cy='32'%20r='1.9'%20fill='%23222'/%3E%3Cpolygon%20points='45,36%2059,39%2045,41'%20fill='%23ff8a1f'/%3E%3Ccircle%20cx='35'%20cy='38'%20r='3'%20fill='%23ffb3c1'/%3E%3Ccircle%20cx='55'%20cy='38'%20r='3'%20fill='%23ffb3c1'/%3E%3Crect%20x='31'%20y='46'%20width='28'%20height='7'%20rx='3'%20fill='%23c4152e'/%3E%3Crect%20x='52'%20y='49'%20width='7'%20height='20'%20rx='2'%20fill='%23c4152e'/%3E%3Cg%20fill='%23333'%3E%3Ccircle%20cx='45'%20cy='62'%20r='2.5'/%3E%3Ccircle%20cx='45'%20cy='72'%20r='2.5'/%3E%3Ccircle%20cx='45'%20cy='96'%20r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cg%20transform='translate(150,150)%20rotate(8)%20scale(0.9)'%3E%3Crect%20x='8'%20y='26'%20width='44'%20height='30'%20rx='3'%20fill='%23e63950'/%3E%3Crect%20x='5'%20y='19'%20width='50'%20height='11'%20rx='3'%20fill='%23c4152e'/%3E%3Crect%20x='26'%20y='19'%20width='8'%20height='37'%20fill='%23ffc800'/%3E%3Cellipse%20cx='23'%20cy='13'%20rx='9'%20ry='5'%20transform='rotate(-25%2023%2013)'%20fill='none'%20stroke='%23ffc800'%20stroke-width='3.5'/%3E%3Cellipse%20cx='37'%20cy='13'%20rx='9'%20ry='5'%20transform='rotate(25%2037%2013)'%20fill='none'%20stroke='%23ffc800'%20stroke-width='3.5'/%3E%3Ccircle%20cx='30'%20cy='16'%20r='4'%20fill='%23ffc800'/%3E%3C/g%3E%3Cg%20transform='translate(300,200)%20rotate(6)%20scale(0.5)'%3E%3Crect%20x='43'%20y='108'%20width='14'%20height='20'%20rx='2'%20fill='%237a4a21'/%3E%3Cg%20stroke='%230f5a30'%20stroke-width='2'%20stroke-linejoin='round'%3E%3Cpolygon%20points='50,62%2010,112%2090,112'%20fill='%231f8f4e'/%3E%3Cpolygon%20points='50,36%2018,82%2082,82'%20fill='%2327a85c'/%3E%3Cpolygon%20points='50,12%2028,52%2072,52'%20fill='%232fbf6a'/%3E%3C/g%3E%3Cpolygon%20points='50,1%2052.35,6.76%2058.56,7.22%2053.8,11.24%2055.29,17.28%2050,14%2044.71,17.28%2046.2,11.24%2041.44,7.22%2047.65,6.76'%20fill='%23ffc800'/%3E%3Ccircle%20cx='30'%20cy='102'%20r='4.5'%20fill='%23e63950'/%3E%3Ccircle%20cx='52'%20cy='96'%20r='4.5'%20fill='%23ffc800'/%3E%3Ccircle%20cx='71'%20cy='104'%20r='4.5'%20fill='%234fc3f7'/%3E%3Ccircle%20cx='40'%20cy='73'%20r='4'%20fill='%23ffc800'/%3E%3Ccircle%20cx='61'%20cy='68'%20r='4'%20fill='%23e63950'/%3E%3C/g%3E%3Cg%20transform='translate(30,270)%20rotate(-10)%20scale(0.8)'%3E%3Crect%20x='8'%20y='26'%20width='44'%20height='30'%20rx='3'%20fill='%234fc3f7'/%3E%3Crect%20x='5'%20y='19'%20width='50'%20height='11'%20rx='3'%20fill='%232a9ad6'/%3E%3Crect%20x='26'%20y='19'%20width='8'%20height='37'%20fill='%23fff'/%3E%3Cellipse%20cx='23'%20cy='13'%20rx='9'%20ry='5'%20transform='rotate(-25%2023%2013)'%20fill='none'%20stroke='%23fff'%20stroke-width='3.5'/%3E%3Cellipse%20cx='37'%20cy='13'%20rx='9'%20ry='5'%20transform='rotate(25%2037%2013)'%20fill='none'%20stroke='%23fff'%20stroke-width='3.5'/%3E%3Ccircle%20cx='30'%20cy='16'%20r='4'%20fill='%23fff'/%3E%3C/g%3E%3Cg%20transform='translate(190,290)%20rotate(-4)%20scale(0.5)'%3E%3Cg%20fill='%23fff'%20stroke='%239cc3de'%20stroke-width='2'%3E%3Ccircle%20cx='45'%20cy='102'%20r='27'/%3E%3Ccircle%20cx='45'%20cy='64'%20r='20'/%3E%3Ccircle%20cx='45'%20cy='34'%20r='14'/%3E%3C/g%3E%3Cg%20stroke='%237a4a21'%20stroke-width='3'%20stroke-linecap='round'%3E%3Cline%20x1='27'%20y1='62'%20x2='8'%20y2='50'/%3E%3Cline%20x1='63'%20y1='62'%20x2='82'%20y2='50'/%3E%3C/g%3E%3Crect%20x='33'%20y='5'%20width='24'%20height='15'%20rx='2'%20fill='%23222'/%3E%3Crect%20x='33'%20y='14'%20width='24'%20height='3.5'%20fill='%23c4152e'/%3E%3Crect%20x='27'%20y='19'%20width='36'%20height='4'%20rx='2'%20fill='%23222'/%3E%3Ccircle%20cx='40'%20cy='32'%20r='1.9'%20fill='%23222'/%3E%3Ccircle%20cx='50'%20cy='32'%20r='1.9'%20fill='%23222'/%3E%3Cpolygon%20points='45,36%2059,39%2045,41'%20fill='%23ff8a1f'/%3E%3Ccircle%20cx='35'%20cy='38'%20r='3'%20fill='%23ffb3c1'/%3E%3Ccircle%20cx='55'%20cy='38'%20r='3'%20fill='%23ffb3c1'/%3E%3Crect%20x='31'%20y='46'%20width='28'%20height='7'%20rx='3'%20fill='%23c4152e'/%3E%3Crect%20x='52'%20y='49'%20width='7'%20height='20'%20rx='2'%20fill='%23c4152e'/%3E%3Cg%20fill='%23333'%3E%3Ccircle%20cx='45'%20cy='62'%20r='2.5'/%3E%3Ccircle%20cx='45'%20cy='72'%20r='2.5'/%3E%3Ccircle%20cx='45'%20cy='96'%20r='2.5'/%3E%3C/g%3E%3C/g%3E%3Cg%20transform='translate(335,335)%20rotate(6)%20scale(0.7)'%3E%3Crect%20x='8'%20y='26'%20width='44'%20height='30'%20rx='3'%20fill='%237bd389'/%3E%3Crect%20x='5'%20y='19'%20width='50'%20height='11'%20rx='3'%20fill='%233fae57'/%3E%3Crect%20x='26'%20y='19'%20width='8'%20height='37'%20fill='%23fff'/%3E%3Cellipse%20cx='23'%20cy='13'%20rx='9'%20ry='5'%20transform='rotate(-25%2023%2013)'%20fill='none'%20stroke='%23fff'%20stroke-width='3.5'/%3E%3Cellipse%20cx='37'%20cy='13'%20rx='9'%20ry='5'%20transform='rotate(25%2037%2013)'%20fill='none'%20stroke='%23fff'%20stroke-width='3.5'/%3E%3Ccircle%20cx='30'%20cy='16'%20r='4'%20fill='%23fff'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='300'%20height='300'%20viewBox='0%200%20300%20300'%3E%3Cg%20opacity='.4'%3E%3Cg%20transform='translate(20,30)%20rotate(-15)%20scale(0.9)'%3E%3Cpath%20d='M12%2058%20V20%20a11%2011%200%200%201%2022%200'%20fill='none'%20stroke='%23e63950'%20stroke-width='9'%20stroke-linecap='round'/%3E%3Cpath%20d='M12%2058%20V20%20a11%2011%200%200%201%2022%200'%20fill='none'%20stroke='%23fff'%20stroke-width='9'%20stroke-dasharray='5%208'/%3E%3C/g%3E%3Cg%20transform='translate(150,50)%20rotate(10)%20scale(1.2)'%3E%3Cpolygon%20points='0.00,-12.00%202.94,-4.05%2011.41,-3.71%204.76,1.55%207.05,9.71%200.00,5.00%20-7.05,9.71%20-4.76,1.55%20-11.41,-3.71%20-2.94,-4.05'%20fill='%23ffc800'%20stroke='%23e0a800'%20stroke-width='1.5'%20stroke-linejoin='round'/%3E%3C/g%3E%3Cg%20transform='translate(250,110)%20rotate(0)%20scale(1)'%3E%3Cg%20stroke='%237fc4ec'%20stroke-width='2.5'%20stroke-linecap='round'%3E%3Cline%20x1='-14'%20y1='0'%20x2='14'%20y2='0'/%3E%3Cline%20x1='-14'%20y1='0'%20x2='14'%20y2='0'%20transform='rotate(60)'/%3E%3Cline%20x1='-14'%20y1='0'%20x2='14'%20y2='0'%20transform='rotate(120)'/%3E%3C/g%3E%3Ccircle%20r='3'%20fill='%237fc4ec'/%3E%3C/g%3E%3Cg%20transform='translate(60,170)%20rotate(-8)%20scale(0.9)'%3E%3Cellipse%20cx='-9'%20cy='0'%20rx='11'%20ry='5'%20transform='rotate(-25%20-9%200)'%20fill='%232e9e57'/%3E%3Cellipse%20cx='9'%20cy='0'%20rx='11'%20ry='5'%20transform='rotate(25%209%200)'%20fill='%2327854a'/%3E%3Ccircle%20cx='-3'%20cy='4'%20r='4'%20fill='%23e63950'/%3E%3Ccircle%20cx='4'%20cy='5'%20r='4'%20fill='%23c4152e'/%3E%3Ccircle%20cx='0'%20cy='-1'%20r='4'%20fill='%23e63950'/%3E%3C/g%3E%3Cg%20transform='translate(200,200)%20rotate(20)%20scale(0.8)'%3E%3Cpath%20d='M12%2058%20V20%20a11%2011%200%200%201%2022%200'%20fill='none'%20stroke='%23e63950'%20stroke-width='9'%20stroke-linecap='round'/%3E%3Cpath%20d='M12%2058%20V20%20a11%2011%200%200%201%2022%200'%20fill='none'%20stroke='%23fff'%20stroke-width='9'%20stroke-dasharray='5%208'/%3E%3C/g%3E%3Cg%20transform='translate(110,260)%20rotate(-10)%20scale(0.9)'%3E%3Cpolygon%20points='0.00,-12.00%202.94,-4.05%2011.41,-3.71%204.76,1.55%207.05,9.71%200.00,5.00%20-7.05,9.71%20-4.76,1.55%20-11.41,-3.71%20-2.94,-4.05'%20fill='%23ffc800'%20stroke='%23e0a800'%20stroke-width='1.5'%20stroke-linejoin='round'/%3E%3C/g%3E%3Cg%20transform='translate(270,270)%20rotate(0)%20scale(0.8)'%3E%3Cg%20stroke='%237fc4ec'%20stroke-width='2.5'%20stroke-linecap='round'%3E%3Cline%20x1='-14'%20y1='0'%20x2='14'%20y2='0'/%3E%3Cline%20x1='-14'%20y1='0'%20x2='14'%20y2='0'%20transform='rotate(60)'/%3E%3Cline%20x1='-14'%20y1='0'%20x2='14'%20y2='0'%20transform='rotate(120)'/%3E%3C/g%3E%3Ccircle%20r='3'%20fill='%237fc4ec'/%3E%3C/g%3E%3Cg%20transform='translate(130,130)%20rotate(0)%20scale(0.7)'%3E%3Cg%20stroke='%237fc4ec'%20stroke-width='2.5'%20stroke-linecap='round'%3E%3Cline%20x1='-14'%20y1='0'%20x2='14'%20y2='0'/%3E%3Cline%20x1='-14'%20y1='0'%20x2='14'%20y2='0'%20transform='rotate(60)'/%3E%3Cline%20x1='-14'%20y1='0'%20x2='14'%20y2='0'%20transform='rotate(120)'/%3E%3C/g%3E%3Ccircle%20r='3'%20fill='%237fc4ec'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, #fff6ee 0%, #eaf5ec 100%) !important;
    background-size: 400px 400px, 300px 300px, 100% 100% !important;
    background-position: 0 0, 130px 90px, 0 0 !important;
    background-repeat: repeat, repeat, no-repeat !important;
}
@media (max-width: 575.98px) {
    .theme-christmas .bg-light,
    .theme-christmas .page-section.bg-light {
        background-size: 280px 280px, 210px 210px, 100% 100% !important;
    }
}

/* Cards */
.theme-christmas .portfolio-item .portfolio-link {
    border: 3px solid var(--xmas-red);
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--xmas-green);
    transition: transform .25s ease, box-shadow .25s ease;
}
.theme-christmas .portfolio-item:hover .portfolio-link {
    transform: translateY(-4px);
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--xmas-gold), 0 10px 24px rgba(179, 18, 43, .35);
}
.theme-christmas .portfolio-caption-heading {
    color: var(--xmas-red);
}
.theme-christmas .portfolio-caption-subheading {
    color: var(--xmas-green) !important;
}

/* Falling snow canvas (created by js/christmas.js) */
#xmas-snow {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2000;
}

/* ---------- Cute stickers on the cards ---------- */
.theme-christmas .portfolio-item {
    position: relative;
}
.theme-christmas .portfolio-item::after,
.theme-christmas .portfolio-item::before {
    position: absolute;
    line-height: 1;
    pointer-events: none;
    z-index: 6;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3));
}
/* big sticker, top-right corner (changes from card to card) */
.theme-christmas .portfolio-item::after {
    content: "\1F381";               /* gift */
    top: -18px;
    right: -6px;
    font-size: 2.1rem;
    transform: rotate(12deg);
    animation: xmas-wiggle 3s ease-in-out infinite;
}
/* little sparkle, top-left corner */
.theme-christmas .portfolio-item::before {
    content: "\2728";                /* sparkles */
    top: -10px;
    left: -4px;
    font-size: 1.3rem;
    animation: xmas-twinkle 2.2s ease-in-out infinite;
}
.theme-christmas #portfolio .row > div:nth-child(6n+2) .portfolio-item::after { content: "\26C4"; }         /* snowman */
.theme-christmas #portfolio .row > div:nth-child(6n+3) .portfolio-item::after { content: "\1F384"; }        /* tree */
.theme-christmas #portfolio .row > div:nth-child(6n+4) .portfolio-item::after { content: "\1F514"; }        /* bell */
.theme-christmas #portfolio .row > div:nth-child(6n+5) .portfolio-item::after { content: "\1F9E6"; }        /* stocking */
.theme-christmas #portfolio .row > div:nth-child(6n)   .portfolio-item::after { content: "\1F385"; }        /* Santa */

/* ---------- Footer scene: snowmen, trees and presents ---------- */
.theme-christmas .footer {
    background: linear-gradient(180deg, #12294a 0%, #1c3d66 100%) !important;
    border-top: 6px solid var(--xmas-red);
    padding-bottom: 0 !important;
    overflow: hidden;
}
.xmas-scene {
    text-align: center;
}
.xmas-greeting {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--xmas-gold);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .45);
    margin-bottom: .75rem;
}
.xmas-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 14px;
    position: relative;
    z-index: 2;
}
.xmas-deco {
    display: block;
    height: auto;
    overflow: visible;
}
.xmas-tree { width: 96px; }
.xmas-tree.small { width: 74px; }
.xmas-snowman {
    width: 80px;
    transform-origin: 50% 100%;
    animation: xmas-sway 4s ease-in-out infinite;
}
.xmas-snowman.flip {
    animation-name: xmas-sway-flip;
    animation-delay: -2s;
}
.xmas-present { width: 46px; }
.xmas-present.big { width: 58px; }
.xmas-tree .tw { animation: xmas-twinkle 1.8s ease-in-out infinite; }

/* snowy ground, full width */
.xmas-ground {
    position: relative;
    z-index: 1;
    height: 30px;
    margin-top: -10px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #fff;
}
.xmas-ground::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -11px;
    height: 12px;
    background: radial-gradient(circle at 12px 12px, #fff 0 11px, transparent 12px) 0 0 / 24px 12px repeat-x;
}

@media (max-width: 575.98px) {
    .xmas-hide-sm { display: none; }
    .xmas-row { gap: 8px; }
    .xmas-tree { width: 76px; }
    .xmas-snowman { width: 64px; }
    .xmas-present { width: 36px; }
    .xmas-greeting { font-size: .8rem; }
}

@keyframes xmas-wiggle {
    0%, 100% { transform: rotate(12deg) scale(1); }
    50%      { transform: rotate(-8deg) scale(1.12); }
}
@keyframes xmas-twinkle {
    0%, 100% { opacity: 1; }
    50%      { opacity: .3; }
}
@keyframes xmas-sway {
    0%, 100% { transform: rotate(-3deg); }
    50%      { transform: rotate(3deg); }
}
@keyframes xmas-sway-flip {
    0%, 100% { transform: scaleX(-1) rotate(-3deg); }
    50%      { transform: scaleX(-1) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
    .theme-christmas .portfolio-item::after,
    .theme-christmas .portfolio-item::before,
    .xmas-snowman,
    .xmas-tree .tw { animation: none; }
    .xmas-snowman.flip { transform: scaleX(-1); }
}

/* Card captions: no white box, let the themed background show through */
.theme-christmas .portfolio-item .portfolio-caption {
    background: transparent !important;
}
.theme-christmas .portfolio-caption-heading,
.theme-christmas .portfolio-caption-subheading {
    text-shadow: 0 0 6px #fff6ee, 0 0 3px #fff6ee;   /* keeps text readable over the stickers */
}

/* ---------- Christmas lights hanging under the navbar (built by js/christmas.js) ---------- */
.xmas-lights {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    height: 46px;
    margin: 0;
    padding: 0 0 0 8px;
    list-style: none;
    display: flex;
    justify-content: flex-start;
    overflow: hidden;
    pointer-events: none;
}
.xmas-lights li {
    position: relative;
    flex: 0 0 12px;
    width: 12px;
    height: 26px;
    margin: 6px 14px 0;                       /* 12px bulb + 28px gap = 40px between bulbs */
    border-radius: 50% 50% 50% 50% / 35% 35% 65% 65%;
    animation: xmas-bulb 2s ease-in-out infinite;
}
.xmas-lights li::before {                      /* socket cap */
    content: "";
    position: absolute;
    top: -6px; left: 2px;
    width: 8px; height: 9px;
    border-radius: 2px;
    background: #1d1d1d;
}
.xmas-lights li::after {                       /* sagging wire to the next bulb */
    content: "";
    position: absolute;
    top: -11px; left: 6px;
    width: 40px; height: 14px;
    border-bottom: 2px solid #1d1d1d;
    border-radius: 50%;
}
.xmas-lights li:nth-child(4n+1) { --c:#e63950; --g:rgba(230,57,80,.9);  --d:#7d2030; --g2:rgba(230,57,80,.12); animation-delay: 0s; }
.xmas-lights li:nth-child(4n+2) { --c:#ffc800; --g:rgba(255,200,0,.9);  --d:#8a6d00; --g2:rgba(255,200,0,.12); animation-delay: .5s; }
.xmas-lights li:nth-child(4n+3) { --c:#2fd36b; --g:rgba(47,211,107,.9); --d:#17703a; --g2:rgba(47,211,107,.12); animation-delay: 1s; }
.xmas-lights li:nth-child(4n)   { --c:#4fc3f7; --g:rgba(79,195,247,.9); --d:#27678a; --g2:rgba(79,195,247,.12); animation-delay: 1.5s; }
@keyframes xmas-bulb {
    0%, 100% { background-color: var(--c); box-shadow: 0 4px 16px 3px var(--g); }
    50%      { background-color: var(--d); box-shadow: 0 4px 16px 1px var(--g2); }
}
@media (prefers-reduced-motion: reduce) {
    .xmas-lights li { animation: none; background-color: var(--c); box-shadow: 0 4px 16px 3px var(--g); }
}
@media (max-width: 575.98px) {
    .xmas-lights { height: 40px; }
}
