:root {
  --xp-blue: #0756d9;
  --xp-blue-light: #3d91ff;
  --window-background: #ece9d8;
  --taskbar-height: 43px;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: #111;
  font-family: Tahoma, Verdana, Arial, sans-serif;
}

button,
input,
audio {
  font: inherit;
}

button {
  cursor: pointer;
}


/* DESKTOP AND WALLPAPER */

.desktop {
  position: relative;

  width: 100vw;
  height: 100dvh;
  min-height: 620px;

  overflow: hidden;

  background-color: #4c92db;
  background-image: url("assets/wallpaper.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;

  user-select: none;
}


/* DESKTOP ICONS */

.desktop-icons {
  position: absolute;
  z-index: 2;

  top: 24px;
  left: 24px;
  bottom: var(--taskbar-height);

  display: grid;
  grid-template-columns: repeat(2, 105px);
  grid-auto-rows: 105px;

  gap: 15px 20px;
}

.desktop-icon {
  width: 105px;
  min-height: 96px;

  padding: 5px;

  border: 1px solid transparent;
  background: transparent;

  color: white;

  text-align: center;

  text-shadow:
    1px 1px 2px #000,
    -1px -1px 1px rgba(0, 0, 0, 0.4);
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(24, 79, 185, 0.48);
  outline: none;
}

.desktop-icon-image {
  display: block;

  width: 52px;
  height: 52px;

  margin: 0 auto 6px;

  object-fit: contain;

  filter:
    drop-shadow(
      2px 2px 1px rgba(0, 0, 0, 0.45)
    );
}

.desktop-icon span:last-child {
  display: inline;

  font-size: 12px;
  line-height: 1.15;
}


/* WINDOWS */

.window {
  position: absolute;
  z-index: 10;

  min-width: 260px;
  min-height: 120px;

  overflow: hidden;

  border: 2px solid var(--xp-blue);
  border-radius: 7px 7px 2px 2px;

  background: var(--window-background);

  box-shadow:
    5px 6px 15px rgba(0, 0, 0, 0.4);
}

.window.hidden,
.window.minimized {
  display: none;
}

.window.active-window {
  z-index: 100;
}

.window.maximized {
  inset:
    4px
    4px
    calc(var(--taskbar-height) + 4px)
    4px !important;

  width: auto !important;
  height: auto !important;

  transform: none !important;
}


/* TITLE BARS */

.titlebar {
  height: 29px;

  display: flex;
  align-items: center;

  gap: 8px;

  padding: 2px 3px 2px 8px;

  color: white;

  background:
    linear-gradient(
      180deg,
      #58a4ff 0%,
      #1165e5 44%,
      #0646bd 100%
    );

  cursor: move;

  font-size: 13px;
  font-weight: 700;

  touch-action: none;
}

.window:not(.active-window) .titlebar {
  background:
    linear-gradient(
      #91b5dc,
      #6189bb
    );
}

.titlebar-title {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 5px;

  overflow: hidden;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.titlebar-icon {
  width: 18px;
  height: 18px;

  flex-shrink: 0;

  object-fit: contain;
}

.window-controls {
  margin-left: auto;

  display: flex;
  gap: 2px;
}

.window-controls button {
  width: 22px;
  height: 22px;

  padding: 0;

  border: 1px solid white;
  border-radius: 3px;

  color: white;

  background:
    linear-gradient(
      #5da1fb,
      #1763d1
    );

  font-weight: bold;
  line-height: 18px;
}

.window-controls button:last-child {
  background:
    linear-gradient(
      #ff8a70,
      #d73719
    );
}

.window-menu {
  height: 26px;

  padding: 5px 8px;

  overflow: hidden;

  border-bottom: 1px solid #aaa;

  background: #f5f3e9;

  font-size: 12px;
  white-space: nowrap;
}

.statusbar {
  height: 24px;

  padding: 4px 8px;

  border-top: 1px solid #aaa;

  background: #f4f1e8;

  font-size: 11px;
}


/* AIM */

.aim-window {
  width: 260px;
  height: 470px;

  right: 4%;
  top: 18%;
}

.aim-content {
  height: calc(100% - 55px);

  padding: 10px;

  background: white;

  font-size: 12px;
}

.aim-profile {
  display: flex;
  align-items: center;

  gap: 10px;

  padding-bottom: 10px;
}

.aim-profile-icon {
  width: 42px;
  height: 42px;

  object-fit: contain;
}

.aim-tabs {
  display: flex;
}

.aim-tabs button {
  padding: 7px 13px;

  border: 1px solid #aaa;

  background: #e8e8e8;
}

.aim-tabs .active {
  border-bottom-color: white;
  background: white;
}

.buddy-panel {
  height: 250px;

  margin-top: -1px;
  padding: 10px;

  display: grid;
  gap: 10px;

  border: 1px solid #aaa;
}

.buddy {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.buddy small {
  color: #777;
}

.buddy i {
  display: inline-block;

  width: 10px;
  height: 10px;

  margin-right: 7px;

  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 50%;
}

.buddy i.online {
  background: #4bc42b;
}

.buddy i.away {
  background: #d52c2c;
}

.buddy i.idle {
  background: #ffd12b;
}

.aim-footer {
  display: flex;
  justify-content: space-around;

  padding-top: 8px;
}

.aim-footer button {
  display: grid;
  justify-items: center;

  gap: 2px;

  border: 0;
  background: transparent;
}

.aim-footer button img {
  width: 24px;
  height: 24px;

  object-fit: contain;
}

.aim-footer small {
  font-size: 9px;
}


/* BROWSER */

.browser-window {
  width: min(850px, 78vw);
  height: min(620px, 75vh);

  left: 18%;
  top: 8%;
}

.browser-toolbar {
  min-height: 38px;

  display: flex;
  align-items: center;

  gap: 5px;

  padding: 4px 7px;

  border-bottom: 1px solid #aaa;

  background: #f3f0e6;
}

.browser-toolbar button {
  min-width: 34px;
  height: 28px;

  display: grid;
  place-items: center;

  padding: 2px;

  border: 1px solid #aaa;

  background:
    linear-gradient(
      white,
      #ddd9cb
    );
}

.toolbar-icon {
  width: 20px;
  height: 20px;

  object-fit: contain;
}

.browser-address-bar {
  min-height: 37px;

  display: flex;
  align-items: center;

  gap: 7px;

  padding: 4px 7px;

  border-bottom: 1px solid #aaa;

  background: #eeeade;

  font-size: 11px;
}

.browser-address-bar input {
  min-width: 0;
  flex: 1;

  height: 25px;

  padding: 3px 7px;

  border: 1px solid #777;

  background: white;

  user-select: text;
}

.browser-address-bar button {
  height: 25px;

  padding: 0 12px;
}

.browser-frame-wrapper {
  position: relative;

  height: calc(100% - 154px);

  background: white;
}

.browser-frame-wrapper iframe {
  width: 100%;
  height: 100%;

  border: 0;

  background: white;
}

.browser-message {
  position: absolute;

  inset: 30px;

  padding: 25px;

  border: 2px solid #999;

  background: white;

  text-align: center;

  user-select: text;
}

.browser-message.hidden {
  display: none;
}

.browser-message button {
  padding: 8px 14px;
}


/* MY DOCUMENTS */

.explorer-window {
  width: min(690px, 72vw);
  height: 465px;

  left: 22%;
  top: 12%;
}

.address-bar {
  min-height: 34px;

  display: flex;
  align-items: center;

  gap: 7px;

  padding: 4px 7px;

  border-bottom: 1px solid #aaa;

  font-size: 11px;
}

.address-location {
  min-width: 0;
  flex: 1;

  display: flex;
  align-items: center;

  gap: 5px;

  padding: 3px 7px;

  overflow: hidden;

  border: 1px solid #999;

  background: white;

  white-space: nowrap;
}

.inline-icon {
  width: 18px;
  height: 18px;

  flex-shrink: 0;

  object-fit: contain;
}

.address-bar button {
  padding: 4px 11px;
}

.explorer-layout {
  height: calc(100% - 113px);

  display: grid;
  grid-template-columns: 180px 1fr;
}

.explorer-sidebar {
  padding: 12px;

  overflow: auto;

  background:
    linear-gradient(
      #7aa7e2,
      #d4e7ff
    );
}

.explorer-sidebar h3 {
  margin: 0 0 7px;
  padding: 6px;

  border-radius: 4px;

  color: #154698;
  background: white;

  font-size: 12px;
}

.explorer-sidebar a {
  display: block;

  margin: 8px 5px 15px;

  color: #16418e;

  font-size: 11px;
  text-decoration: none;
}

.files-area,
.recycle-content {
  padding: 18px;

  overflow: auto;

  background: white;
}

.audio-file {
  display: grid;

  grid-template-columns:
    46px
    minmax(120px, 1fr);

  gap: 10px;

  align-items: center;

  margin-bottom: 20px;
  padding: 8px;

  border: 1px solid transparent;
}

.audio-file:hover {
  border-color: #8fb7f1;
  background: #e8f1ff;
}

.audio-file .file-icon {
  grid-row: span 2;

  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 0;
  background: transparent;
}

.audio-file .file-icon img {
  width: 40px;
  height: 40px;

  object-fit: contain;
}

.audio-file div {
  display: grid;

  gap: 3px;

  font-size: 12px;
}

.audio-file small {
  color: #666;
}

.audio-file audio {
  grid-column: 2;

  width: min(100%, 330px);
  height: 32px;

  user-select: auto;
}


/* PICTURES */

.pictures-window {
  width: min(620px, 72vw);
  height: 500px;

  left: 25%;
  top: 9%;
}

.slideshow {
  height: calc(100% - 55px);

  display: flex;
  flex-direction: column;

  min-height: 0;
  overflow: hidden;

  background: #111;
}

.slides {
  flex: 1 1 auto;

  min-height: 0;
  overflow: hidden;
}

.slide {
  width: 100%;
  height: 100%;
  min-height: 0;

  margin: 0;

  display: none;
  grid-template-rows: minmax(0, 1fr) auto;

  overflow: hidden;
}

.slide.active {
  display: grid;
}

.slideshow-image {
  display: block;

  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;

  padding: 8px;

  border: 0;

  object-fit: contain;
  object-position: center;

  background: #111;
}

.placeholder-image {
  min-height: 0;

  display: grid;
  place-items: center;

  border: 8px solid white;

  color: white;

  font-weight: bold;
  letter-spacing: 2px;

  text-shadow: 1px 1px 3px #000;
}

.placeholder-image.sunset {
  background:
    linear-gradient(
      155deg,
      #ffbc55,
      #d85166 55%,
      #303a7d
    );
}

.placeholder-image.ocean {
  background:
    linear-gradient(
      #54bff0 45%,
      #f6db8f 46%,
      #178bb5 75%
    );
}

.placeholder-image.night {
  background:
    radial-gradient(
      circle at 30% 25%,
      #fff 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 70% 40%,
      #fff 0 2px,
      transparent 3px
    ),
    linear-gradient(
      #07163a,
      #341f59
    );

  background-size:
    90px 90px,
    120px 120px,
    auto;
}

.slide figcaption {
  padding: 7px 9px;

  color: #111;
  background: white;

  text-align: center;
  font-size: 12px;
}

.slideshow-controls {
  flex: 0 0 46px;

  min-height: 46px;

  display: flex;
  justify-content: center;
  align-items: center;

  gap: 18px;
  padding: 5px 10px;

  color: white;
  background: #111;
}

.slideshow-controls button {
  flex: 0 0 auto;

  padding: 5px 12px;
}

#slide-counter {
  min-width: 42px;

  text-align: center;
  white-space: nowrap;
}


/* RECYCLE BIN */

.recycle-window {
  width: min(620px, 68vw);
  height: 390px;

  left: 30%;
  top: 20%;
}

.recycle-content {
  height: calc(100% - 79px);

  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  align-content: start;

  gap: 10px;
  padding: 14px;

  overflow: auto;

  background: white;
}

.recycle-content .explorer-item {
  width: 100%;
  min-width: 0;
  min-height: 64px;

  display: flex;
  align-items: center;

  gap: 10px;
  padding: 9px;

  border: 1px solid transparent;

  color: #111;
  background: transparent;

  font-family: Tahoma, Verdana, Arial, sans-serif;
  text-align: left;
}

.recycle-content .explorer-item:hover,
.recycle-content .explorer-item:focus-visible {
  border-color: #8db2e8;
  background: #e6f0ff;
  outline: none;
}

.recycle-content .explorer-item img {
  display: block;

  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;

  flex: 0 0 36px;

  object-fit: contain;
}

.recycle-content .explorer-item span {
  min-width: 0;

  display: grid;

  gap: 3px;
}

.recycle-content .explorer-item strong {
  overflow: hidden;

  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;

  white-space: normal;
  overflow-wrap: anywhere;
}

.recycle-content .explorer-item small {
  color: #666;

  font-size: 10px;
  line-height: 1.25;
}

.deleted-file {
  opacity: 0.76;
}

.deleted-file:hover,
.deleted-file:focus-visible {
  opacity: 1;
}


/* MY COMPUTER */

.computer-window {
  width: 440px;
  height: 250px;

  left: 28%;
  top: 22%;
}

.simple-folder {
  height: calc(100% - 29px);

  display: flex;

  gap: 45px;

  padding: 45px;

  background: white;
}

.simple-folder div {
  display: grid;
  justify-items: center;

  gap: 8px;

  text-align: center;
}

.drive-icon-image {
  width: 48px;
  height: 48px;

  object-fit: contain;
}

.simple-folder div span {
  font-size: 12px;
}


/* STICKY NOTE */

.sticky-note {
  position: absolute;
  z-index: 5;

  left: 45%;
  bottom: 85px;

  width: 220px;
  min-height: 126px;

  padding: 16px;

  display: grid;
  gap: 7px;

  background: #fff47a;

  box-shadow:
    4px 5px 10px rgba(0, 0, 0, 0.35);

  transform: rotate(-1deg);

  font:
    13px
    "Comic Sans MS",
    cursive;
}

.sticky-note button {
  position: absolute;

  right: 4px;
  top: 4px;

  width: 17px;
  height: 17px;

  padding: 0;

  border: 1px solid #555;

  background: transparent;

  font-size: 11px;
}


/* WINAMP */

.winamp {
  position: absolute;
  z-index: 8;

  right: 7%;
  bottom: 76px;

  width: 300px;

  border: 3px ridge #626262;

  background: #151515;

  box-shadow:
    5px 5px 12px rgba(0, 0, 0, 0.45);

  color: #8cff22;

  font-family: "Courier New", monospace;
  font-size: 11px;
}

.winamp-heading {
  min-height: 22px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 4px 7px;

  border-bottom: 2px ridge #555;

  color: #ddd;

  background:
    linear-gradient(
      #424242,
      #161616
    );

  cursor: move;

  font-weight: bold;

  touch-action: none;
}

.winamp-display {
  margin: 7px;
  padding: 7px;

  border: 2px inset #333;

  background: #061007;
}

.winamp-track-title {
  display: block;

  overflow: hidden;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.winamp-time-display {
  display: flex;
  justify-content: space-between;

  margin-top: 6px;
}

.winamp-progress {
  width: calc(100% - 14px);

  margin: 0 7px;

  accent-color: #8cff22;
}

.winamp-controls {
  display: flex;

  gap: 4px;

  padding: 7px;
}

.winamp-controls button {
  min-width: 37px;
  height: 24px;

  border: 2px outset #aaa;

  background: #bbb;

  font-size: 10px;
}

.winamp-controls button:active {
  border-style: inset;
}

.winamp-volume-label {
  display: flex;
  align-items: center;

  gap: 7px;

  padding: 0 8px 8px;

  color: #ddd;

  font-size: 9px;
}

.winamp-volume-label input {
  flex: 1;

  accent-color: #8cff22;
}


/* TASKBAR */

.taskbar {
  position: absolute;
  z-index: 1000;

  left: 0;
  right: 0;
  bottom: 0;

  height: var(--taskbar-height);

  display: flex;
  align-items: center;

  color: white;

  background:
    linear-gradient(
      #2f8ef8,
      #0750c6 72%,
      #063b9b
    );
}

.start-button {
  align-self: stretch;

  min-width: 116px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 6px;

  padding: 0 18px;

  border: 0;
  border-radius: 0 12px 12px 0;

  color: white;

  background:
    linear-gradient(
      90deg,
      #168b21,
      #47c74d 65%,
      #137b1d
    );

  font-size: 19px;
  font-style: italic;
  font-weight: bold;

  text-shadow:
    1px 1px #1b511e;
}

.start-icon {
  width: 23px;
  height: 23px;

  object-fit: contain;
}

.start-button:active {
  background:
    linear-gradient(
      90deg,
      #0d6815,
      #31a438,
      #0b5d12
    );
}

.task-buttons {
  min-width: 0;
  flex: 1;

  display: flex;

  gap: 4px;

  padding: 4px 8px;

  overflow: hidden;
}

.task-buttons button {
  min-width: 145px;
  max-width: 220px;
  height: 34px;

  display: flex;
  align-items: center;

  gap: 5px;

  overflow: hidden;

  padding: 0 10px;

  border: 1px solid #0a3f99;

  color: white;

  background:
    linear-gradient(
      #3b91ff,
      #0c58c9
    );

  text-align: left;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.task-buttons button img {
  width: 19px;
  height: 19px;

  flex-shrink: 0;

  object-fit: contain;
}

.task-buttons button.active {
  background:
    linear-gradient(
      #1650aa,
      #2d72d5
    );

  box-shadow:
    inset 1px 1px 3px rgba(0, 0, 0, 0.45);
}

.taskbar time {
  align-self: stretch;

  min-width: 92px;

  display: grid;
  place-items: center;

  padding: 0 12px;

  border-left: 1px solid #0e52ae;

  background: #1488df;

  font-size: 12px;
}


/* MOBILE */

@media (max-width: 700px) {

  :root {
    --taskbar-height: 42px;
  }

  .desktop {
    min-height: 560px;

    background-position: center center;
  }

  .desktop-icons {
    top: 12px;
    left: 7px;

    grid-template-columns: 89px;
    grid-auto-rows: 82px;

    gap: 8px;
  }

  .desktop-icon {
    width: 89px;
    min-height: 76px;
  }

  .desktop-icon-image {
    width: 42px;
    height: 42px;

    margin-bottom: 3px;
  }

  .desktop-icon span:last-child {
    font-size: 10px;
  }

  .window {
    max-width: calc(100vw - 16px);
  }

  .aim-window {
    width: 235px;
    height: 400px;

    right: 8px;
    top: 75px;
  }

  .buddy-panel {
    height: 185px;
  }

  .browser-window,
  .explorer-window,
  .pictures-window,
  .recycle-window,
  .computer-window {
    width: calc(100vw - 18px);

    left: 9px;
    top: 12px;

    transform: none;
  }

  .browser-window {
    height: calc(100dvh - 65px);
  }

  .browser-toolbar {
    gap: 2px;
  }

  .browser-toolbar button {
    min-width: 30px;
  }

  .browser-address-bar label {
    display: none;
  }

  .explorer-window {
    height: calc(100dvh - 65px);
  }

  .explorer-layout {
    grid-template-columns: 1fr;
  }

  .explorer-sidebar {
    display: none;
  }

  .pictures-window {
    height:
      min(
        500px,
        calc(100dvh - 65px)
      );
  }

  .placeholder-image {
    min-height: 220px;

    border-width: 7px;

    font-size: 10px;
  }

  .recycle-window {
    height: 300px;
  }

  .computer-window {
    height: 240px;
  }

  .simple-folder {
    padding: 35px 25px;

    gap: 30px;
  }

  .sticky-note {
    left: 8px;
    bottom: 66px;

    width: 155px;
    min-height: 100px;

    padding: 11px;

    gap: 4px;

    font-size: 10px;
  }

  .winamp {
    right: 7px;
    bottom: 63px;

    width: 210px;

    font-size: 8px;
  }

  .winamp-controls button {
    min-width: 31px;

    padding: 2px 4px;
  }

  .start-button {
    min-width: 83px;

    padding: 0 9px;

    font-size: 16px;
  }

  .start-icon {
    width: 19px;
    height: 19px;
  }

  .task-buttons {
    padding: 4px;
  }

  .task-buttons button {
    min-width: 70px;
    max-width: 94px;

    font-size: 10px;
  }

  .taskbar time {
    min-width: 73px;

    padding: 0 5px;

    font-size: 10px;
  }
}

/* Updated Document Folder System */

.documents-files-area {
  position: relative;
}

.folder-view {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  align-content: start;
  gap: 12px;
  width: 100%;
}

.folder-view.active-folder-view {
  display: grid;
}

.explorer-item {
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: #111;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  text-align: left;
}

button.explorer-item {
  width: 100%;
  cursor: pointer;
}

.explorer-item:hover,
.explorer-item:focus-visible {
  border-color: #8db2e8;
  background: #e6f0ff;
  outline: none;
}

/* Prevent folder/file artwork from displaying at its natural full size */
.documents-files-area .explorer-item img {
  display: block;
  width: 40px;
  height: 40px;
  max-width: 40px;
  max-height: 40px;
  flex: 0 0 40px;
  object-fit: contain;
}

.documents-files-area .folder-item img {
  width: 46px;
  height: 46px;
  max-width: 46px;
  max-height: 46px;
  flex-basis: 46px;
}

.documents-files-area .document-file img {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  flex-basis: 36px;
}

.explorer-item span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.explorer-item strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}

.explorer-item small {
  color: #666;
  font-size: 10px;
  line-height: 1.25;
}

.document-file {
  cursor: default;
}

.sidebar-action {
  width: calc(100% - 10px);
  margin: 5px 5px 15px;
  padding: 0;
  border: 0;
  color: #16418e;
  background: transparent;
  font-size: 11px;
  text-align: left;
}

.sidebar-action:hover,
.sidebar-action:focus-visible {
  text-decoration: underline;
  outline: none;
}

#documents-back-button:disabled {
  cursor: default;
  opacity: 0.5;
}


/* What Happens Next Video Window */

.video-window {
  width: min(760px, 78vw);
  height: min(500px, 70vh);
  left: 23%;
  top: 13%;
}

.video-embed-wrapper {
  width: 100%;
  height: calc(100% - 29px);
  padding: 8px;
  background: #000;
}

.video-embed-wrapper iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}


/* Extra Image Safety */

/* Slideshow photos stay contained within the available image area. */
.slideshow-image {
  max-width: 100%;
  max-height: 100%;

  object-fit: contain;
  object-position: center;
}

/* Preserve the intended small sizes of interface icons. */
.titlebar-icon,
.inline-icon,
.toolbar-icon,
.desktop-icon-image,
.drive-icon-image,
.start-icon,
.aim-profile-icon,
.aim-footer button img,
.task-buttons button img,
.audio-file .file-icon img,
.recycle-content .explorer-item img {
  object-fit: contain;
}


/* =========================================================
   UPDATED MOBILE DOCUMENTS + VIDEO
   ========================================================= */

@media (max-width: 700px) {
  .folder-view {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .explorer-item {
    min-height: 92px;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 6px;
    text-align: center;
  }

  .documents-files-area .explorer-item img,
  .documents-files-area .folder-item img {
    width: 42px;
    height: 42px;
    max-width: 42px;
    max-height: 42px;
    flex-basis: auto;
  }

  .documents-files-area .document-file img {
    width: 34px;
    height: 34px;
    max-width: 34px;
    max-height: 34px;
  }

  .explorer-item strong {
    font-size: 11px;
    text-align: center;
  }

  .explorer-item small {
    font-size: 9px;
    text-align: center;
  }

  .video-window {
    width: calc(100vw - 18px);
    height: min(420px, calc(100dvh - 65px));
    left: 9px;
    top: 12px;
  }

  .slideshow-controls {
    gap: 8px;
    padding-inline: 6px;
  }

  .slideshow-controls button {
    padding: 5px 8px;
    font-size: 10px;
  }

  .slide figcaption {
    padding: 6px;
    font-size: 10px;
  }

  .recycle-window {
    height: min(390px, calc(100dvh - 65px));
  }

  .recycle-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
  }

  .recycle-content .explorer-item {
    min-height: 92px;

    display: grid;
    justify-items: center;
    align-content: center;

    gap: 6px;

    text-align: center;
  }

  .recycle-content .explorer-item img {
    width: 34px;
    height: 34px;
    max-width: 34px;
    max-height: 34px;

    flex-basis: auto;
  }

  .recycle-content .explorer-item strong,
  .recycle-content .explorer-item small {
    text-align: center;
  }
}
