/*
* ===================================================
*     CUSTOM CSS CODE BELOW
* ===================================================
*/

/* Tunna vita linjer mellan startsidans bilder */
.image-caption .card-scale {
  border: 3px solid #ffffff;
}

/* Julkalender: luckorna som rosa julklappar, samma storlek som förut */
.box.closedDoor {
  position: relative !important;
  background: linear-gradient(160deg, #ff9ec8 0%, #f27bb0 60%, #e4609c 100%) !important;
  background-size: 100% 100% !important;
  background-position: 0 0 !important;
  background-repeat: no-repeat !important;
  background-origin: border-box !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 6px 14px rgba(190, 60, 120, .25) !important;
  overflow: hidden !important;
  transition: transform .25s ease, box-shadow .25s ease;
}
.box.closedDoor:hover {
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 12px 22px rgba(190, 60, 120, .35) !important;
}
.box.closedDoor > *:not(h2) {
  background: transparent !important;
  border-color: transparent !important;
}

/* Cerise metallic presentband, lodrätt och vågrätt */
.article:has(> .box.closedDoor) {
  position: relative !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.article:has(> .box.closedDoor) > *:not(.box) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.article:has(> .box.closedDoor)::after {
  content: none !important;
}
.article:has(> .box.closedDoor)::before {
  content: none !important;
}
.article:has(> .box.closedDoor)::before-unused {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  border-radius: 10px;
  background:
    radial-gradient(ellipse 15px 12px at calc(50% - 20px) 17px, #e0307f 0 62%, #8e0d4a 80%, transparent 88%),
    radial-gradient(ellipse 15px 12px at calc(50% + 20px) 17px, #e0307f 0 62%, #8e0d4a 80%, transparent 88%),
    radial-gradient(circle at 50% 17px, #ff7fbd 0 5px, #8e0d4a 7px, transparent 8px),
    linear-gradient(90deg, transparent calc(50% - 6px), #8e0d4a calc(50% - 6px), #e0307f calc(50% - 3px), #ff7fbd 50%, #e0307f calc(50% + 3px), #8e0d4a calc(50% + 6px), transparent calc(50% + 6px)),
    linear-gradient(0deg, transparent calc(50% - 6px), #8e0d4a calc(50% - 6px), #e0307f calc(50% - 3px), #ff7fbd 50%, #e0307f calc(50% + 3px), #8e0d4a calc(50% + 6px), transparent calc(50% + 6px)) !important;
  filter: drop-shadow(0 1px 2px rgba(80, 0, 40, .4));
}

.box.closedDoor::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background:
    linear-gradient(90deg, transparent calc(50% - 7px), #8e0d4a calc(50% - 7px), #e0307f calc(50% - 3px), #ff8cc4 50%, #e0307f calc(50% + 3px), #8e0d4a calc(50% + 7px), transparent calc(50% + 7px)),
    linear-gradient(0deg, transparent calc(50% - 7px), #8e0d4a calc(50% - 7px), #e0307f calc(50% - 3px), #ff8cc4 50%, #e0307f calc(50% + 3px), #8e0d4a calc(50% + 7px), transparent calc(50% + 7px)) !important;
}
.box.closedDoor::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40'%3E%3Cpath d='M30 24 L17 38 L26 36 L32 27Z M34 24 L47 38 L38 36 L32 27Z' fill='%23c01868' stroke='%238e0d4a' stroke-width='1'/%3E%3Cpath d='M32 22 C22 2 2 2 3 15 C4 27 22 25 32 22Z' fill='%23e0307f' stroke='%238e0d4a' stroke-width='1.2'/%3E%3Cpath d='M32 22 C42 2 62 2 61 15 C60 27 42 25 32 22Z' fill='%23e0307f' stroke='%238e0d4a' stroke-width='1.2'/%3E%3Cpath d='M29 20 C22 9 11 8 9 14' fill='none' stroke='%23ff9fd0' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M35 20 C42 9 53 8 55 14' fill='none' stroke='%23ff9fd0' stroke-width='2' stroke-linecap='round'/%3E%3Cellipse cx='32' cy='23' rx='6' ry='5' fill='%23ff6fb1' stroke='%238e0d4a' stroke-width='1.2'/%3E%3C/svg%3E") 50% 2px / 64px 40px no-repeat !important;
  filter: drop-shadow(0 1px 2px rgba(80, 0, 40, .45));
}

/* Numret som en glittrig rosa julgranskula */
.box.closedDoor h2 {
  position: relative !important;
  z-index: 50 !important;
  background: #ffffff !important;
  opacity: 1 !important;
  color: #b0124f !important;
  font-size: 1.15em !important;
  border: 3px solid #e0307f !important;
  border-radius: 50% !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  box-shadow: 0 3px 8px rgba(120, 0, 50, .35);
}