/*
 * DOMINANTS.CO LIVE - Global Wide Layout override v1.0
 * Scope: LIVE vhost only. Loaded after the active theme header.
 */
:root {
  --dom-wide-max: 1680px;
  --dom-wide-gutter: clamp(12px, 2vw, 32px);
}

/* Legacy phpFox shell */
.holder {
  width: 100%;
  max-width: var(--dom-wide-max);
  box-sizing: border-box;
  padding-inline: var(--dom-wide-gutter);
}

#header {
  min-width: 0;
}

#header_right {
  left: 180px;
  right: 0;
  width: auto;
  max-width: none;
}

#content_holder,
#main_content,
#main_content_padding,
#content_load_data,
#content {
  min-width: 0;
  max-width: none;
}

.content_float,
.content2,
.content3,
.content4 {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

#panels {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(16px, 2vw, 32px);
}

#left {
  float: none;
  flex: 1 1 min(680px, calc(100% - 280px));
  min-width: 0;
  width: auto;
}

#right {
  float: none;
  flex: 0 1 clamp(220px, 20vw, 300px);
  width: auto;
  max-width: 30%;
  min-width: 0;
}

.item_feed_entry {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.activity_feed_content_image,
.activity_feed_content_image img,
.activity_feed_content_image video {
  max-width: 100%;
  height: auto;
}

/* Modern Noir shell: feed, composer, profiles and story-like feed views */
body:has([data-testid="itemFeed"], [data-testid="blockStatusComposer"], [data-testid="itemViewItemUser"], [data-testid*="Story"], [data-testid*="story"]) [data-testid="container.main"] {
  width: 100% !important;
  max-width: min(var(--dom-wide-max), 100%) !important;
  margin-inline: auto !important;
  padding-inline: var(--dom-wide-gutter) !important;
  box-sizing: border-box !important;
}

body:has([data-testid="itemFeed"], [data-testid="blockStatusComposer"], [data-testid="itemViewItemUser"], [data-testid*="Story"], [data-testid*="story"]) [data-testid="layoutSlotMain"] {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body:has([data-testid="itemFeed"], [data-testid="blockStatusComposer"], [data-testid="itemViewItemUser"], [data-testid*="Story"], [data-testid*="story"]) [data-testid="itemFeed"],
body:has([data-testid="itemFeed"], [data-testid="blockStatusComposer"], [data-testid="itemViewItemUser"], [data-testid*="Story"], [data-testid*="story"]) [data-testid="blockStatusComposer"],
body:has([data-testid="itemFeed"], [data-testid="blockStatusComposer"], [data-testid="itemViewItemUser"], [data-testid*="Story"], [data-testid*="story"]) [data-testid="itemViewItemFeed"] {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

@media (max-width: 980px) {
  #header_right {
    left: 0;
    right: auto;
    position: static;
    width: 100%;
  }

  #panels {
    display: block;
  }

  #left,
  #right {
    display: block;
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  #right {
    margin-top: 20px;
  }
}

@media (max-width: 640px) {
  .holder {
    padding-inline: 12px;
  }

  #header_left,
  #logo {
    width: auto;
    max-width: 100%;
  }
}
