/* same vars; just renamed classes to include -videos */
.skeleton-loader-videos.ranch {
  position: relative;
  height: 608.66px;
}
.skeleton-loader-videos.ranch::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--skeleton-bg-color);
  background-repeat: no-repeat;
  background-image:
    linear-gradient(90deg, transparent, var(--skeleton-highlight-color) 50%, transparent 100%),
    linear-gradient(var(--skeleton-base-color) 296.83px, transparent 0),
    linear-gradient(var(--skeleton-base-color) 296.83px, transparent 0),
    linear-gradient(var(--skeleton-base-color) 598.66px, transparent 0),
    linear-gradient(var(--skeleton-bg-color) 100%, transparent 0);
  background-size:
    314.33px 100%,
    296.83px 296.83px,
    296.83px 296.83px,
    296.83px 598.66px,
    100% 100%;
  background-position:
    0 0,
    15px 5px,
    15px 306.83px,
    316.83px 5px,
    0 0;
  animation: skeleton-animation-videos-ranch 1s cubic-bezier(0, 0.02, 0.64, 0.21) infinite;
}

@keyframes skeleton-animation-videos-ranch {
  from {
    background-position:
      -314.33px 0,
      15px 5px,
      15px 306.83px,
      316.83px 5px,
      0 0;
  }
  to {
    background-position:
      100% 0,
      15px 5px,
      15px 306.83px,
      316.83px 5px,
      0 0;
  }
}

.skeleton-loader-videos ~ .skeleton-loader-videos::after {
  margin-top: -5px;
}

.profile-header {
    display: flex;
    width: 100%;
    height: 222px;
}

.profile-bg {
    position: absolute;
    width: 100%;
    height: 100px;
}

img.profile-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-content {
    margin: 62px 20px 0px 14px;
    display: flex;
    width: 100%;
    height: calc(100% - 62px);
}

.profile-left-content {
    width: max-content;
    height: max-content;
    position: relative;
}

.profile-middle-top-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

span.ranch-bio {
    width: 175px;
    
    

    /* multi-line clamp */
    
    
      /* fallback for most browsers */
              /* modern shorthand */
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#squircle {
    -webkit-clip-path: url(#svg-shape);
    -moz-clip-path: url(#svg-shape);
    -o-clip-path: url(#svg-shape);
    -ms-clip-path: url(#svg-shape);
    clip-path: url(#svg-shape);
}

img#squircle {
    width: 200px;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.profile-img-wrapper-main {
    width: 162px;
    height: 162px;
}

.profile-img-wrapper {
    transform: scale(0.75);
    transform-origin: 0 0;
    width: 200px;
    height: 200px;
    position: absolute;
    top: 0px;
    left: 0px;
    margin: 6px;
}

.profile-outline-wrapper {
    transform: scale(0.81);
    transform-origin: 0 0;
    width: 200px;
    height: 200px;
}

.content-types {
    margin: 10px 0px 0px 0px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

button.content-type-btn {
    width: 100%;
    padding: 11px 0px;
    background: none;
    border: none;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-default);
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 14px;
}

button.content-type-btn.active {
    border-bottom: 1px solid var(--text-primary);
    color: var(--text-primary);
}

button.content-type-btn:hover {
    color: var(--text-primary);
}

.profile-middle-bottom-content {
    display: flex;
    width: 100%;
    gap: 4px;
}

button.follow-ranch-btn,button.about-ranch-btn, button.follow-page-btn,button.about-page-btn {
    display: flex;
    width: 100%;
    background: var(--text-primary);
    border: 1px solid var(--text-primary);
    border-radius: 10px;
    padding: 7px 0;
    font-size: 12px;
    font-weight: 500;
    color: var(--bg-surface);
    cursor: pointer;
    font-family: inherit;
    align-items: center;
    justify-content: center;
}

button.about-ranch-btn, button.follow-ranch-btn.following, button.about-page-btn, button.follow-page-btn.following {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--text-muted);
}

.profile-middle-content {
    display: flex;
    flex-direction: column;
    width: max-content;
    margin: 0px 0px 15px 9px;
    justify-content: flex-end;
    gap: 8px;
    min-width: 240px;
}

span.ranch-name {font-weight: 700;font-size: 22px;width: max-content;max-width: 310px;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}

.profile-right-content {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    width: 100%;
    margin: 0px 6px 12px 0px;
    flex-direction: column;
    position: relative;
}

.profile-outline {
    width: 200px;
    height: 200px;
    background: #ffffff8f;
    -webkit-clip-path: url(#svg-shape);
    -moz-clip-path: url(#svg-shape);
    -o-clip-path: url(#svg-shape);
    -ms-clip-path: url(#svg-shape);
    clip-path: url(#svg-shape);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
}

:root {
	--color-core-primary: #000000;
	--color-core-tertiary: #000000;
	--color-core-bg: #fff;
	--color-avatars-background: #f8f9fa;
}

.avatars {
	--gap: 6px;
	--avatar-size: 22px;
	--overlap-size: 5px;
	--hover-overlap-size: 11px; /* Best to keep lower than --avatar-size so that there is still some overlap on hover */
	--border-size: 1.8px;
	--num-children: 4; /* Value is automatically updated based on the number of children. See :has() below. Does not work in Firefox though. */
	--num-children-1: calc(var(--num-children) - 1);
	border-radius: var(--avatar-size);
	display: grid;
	gap: var(--gap);
	padding: var(--gap);
	grid-auto-flow: column;
	grid-template-columns: repeat(var(--num-children), var(--grid-cell-size-to-use));
	/* 	grid-auto-columns: var(--grid-cell-size-to-use); */
	width: calc(var(--grid-cell-size-to-use) * var(--num-children-1) + var(--gap) * var(--num-children) + var(--avatar-size) + var(--border-size));
	transition: all ease-in-out 0.25s;
	margin: 0px -5px -7px 0px;
}

.avatars {
	--grid-cell-size-to-use: var(--overlap-size);
}


:is( /* Wrapped in an :is() to not break Firefox which does not support :has() */
  .avatars:hover,
  .avatars:not(hover):has(> :focus) /* Also grow when tabbing into the list */
) {
	--grid-cell-size-to-use: var(--hover-overlap-size, var(--avatar-size));
}

.avatars > * {
	width: var(--avatar-size);
	aspect-ratio: 1;
	height: auto;
	
	clip-path: circle(calc(var(--avatar-size) / 2 + var(--border-size) * 2));
	outline: none;
}

.avatars img {
	width: 100%;
	height: 100%;
	--border-color: var(--color-core-primary);
	outline: var(--border-size) solid var(--border-color);
	outline-offset: calc(var(--border-size) * -2 + 0.5px); /* 1px extra to cater for rounding errors */
	border: var(--border-size) solid var(--color-avatars-background);
	border-radius: var(--avatar-size);
	transition: all ease-in-out 0.15s;
	object-fit: cover;
}

.avatars :is(:hover, :focus) > img {
	--border-color: var(--color-core-tertiary);
	scale: 1.1;
}

/* Update --num-children based on the number of children .avatars has */
.avatars:where(:has(> *:nth-of-type(1):last-child)) {
	--num-children: 1;
}
.avatars:where(:has(> *:nth-of-type(2):last-child)) {
	--num-children: 2;
}
.avatars:where(:has(> *:nth-of-type(3):last-child)) {
	--num-children: 3;
}
.avatars:where(:has(> *:nth-of-type(4):last-child)) {
	--num-children: 4;
}
.avatars:where(:has(> *:nth-of-type(5):last-child)) {
	--num-children: 5;
}

span.followers-data {
    color: var(--text-primary);
}

.followers-block {
    font-size: 14px;
}

.initial-loading.ranch {
    height: calc(100vh - 333px);
    top: 273px;
}

.initial-loading-videos.ranch {
    height: calc(100vh - 333px);
    top: 273px;
    margin-top: 10px;
}

button.content-type-btn:active {
    transform: none;
}

span.followers-title:hover {
    text-decoration: underline;
}

span.followers-title {
    color: var(--text-secondary);
    cursor: pointer;
}

.user-profile {padding: 0px 25px 13px 25px;max-width: 100%;width: 100%;display: flex;border-bottom: 1px solid var(--border-default);}

.user-profile-left img {width: 40px;height: 40px;display: block;border-radius: 99px;overflow: hidden;box-shadow: 0 0 2px 0 #d1d1d1;object-fit: cover;}

.user-profile-right {
  display: flex;
  justify-content: space-between;
  padding: 0px 0px 0px 12px;
  width: 100%;
}

.user-profile-top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: column;
}

.user-profile-top-left .entity-title {
  font-weight: 700;
  font-size: inherit;
  color: var(--text-primary);
}

.user-profile-top-left .entity-subtitle {
  font-size: inherit;
  color: var(--text-secondary);
  font-weight: 400;
}

.user-profile-bottom .page-desc {
  font-size: 14px;
  margin-bottom: 6px;
  padding-top: 4px;
  color: var(--text-tertiary);
  width: 380px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.user-profile-bottom .page-followers {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.user-profile:first-child {
    padding-top: 16px;
}

.user-profile-top-left {
    font-size: 15px;
}

a.entity-title-link {
    color: inherit;
    text-decoration: none;
    font-size: inherit;
    font-family: inherit;
}

a.entity-title-link:hover {
    text-decoration: underline;
}

.user-profile-top-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile-bottom {
    width: 100%;
}

button.follow-ranch-btn.following svg,button.follow-page-btn.following svg {
    fill: var(--text-primary);
    width: 17px;
    height: max-content;
    margin: 0px 0px -2px 0px;
}

button.follow-ranch-btn.following, button.follow-page-btn.following {
    padding: 0px 0px 0px 5px;
}

div#following-btn-modal {position: fixed;top: 50%;left: 50%;transform: translate(-50%, -50%);width: 400px;background: var(--bg-surface);border-radius: 18px;overflow: hidden;z-index: 1001;font-size: 16px;box-shadow: 0 0 20px -9px #000;display: flex;align-items: center;justify-content: center;flex-direction: column;font-size: 14px;color: var(--text-primary);}

img.following-btn-module-avatar {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 50%;
}

.following-btn-module-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 15px 0px;
    gap: 4px;
    font-weight: 600;
    width: 100%;
    height: max-content;
    position: relative;
}

div#following-btn-modal button {
    width: 100%;
    padding: 14px 25px 15px 25px;
    border: none;
    background: none;
    border-top: 1px solid var(--border-default);
    text-align: center;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    transition: none;
    transform: none;
}

button.unfollow-btn {
    color: #ff1c1c !important;
}

.user-profile-bottom .page-desc:empty {
    display: none;
}

div#about-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    background: var(--bg-surface);
    border-radius: 18px;
    overflow-y: auto;
    z-index: 1001;
    font-size: 16px;
    box-shadow: 0 0 20px -9px #000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    font-size: 14px;
    color: var(--text-primary);
    max-height: calc(100vh - 20px);
}

.about-header {
    font-size: 16px;
    color: var(--text-primary);
    padding: 10px 0px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-default);
}

.about-top {
    font-size: 16px;
    color: var(--text-primary);
    padding: 10px 0px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex-direction: column;
}

img.about-avatar.loaded {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

span.about-page-name {
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 700;
}

span.about-established {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 3px;
}

span.about-bio {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 5px 20px 12px;
    text-align: center;
}

.about-data {
    display: flex;
    padding: 0px 20px;
    width: 100%;
    justify-content: space-between;
}

.about-data-block {
    width: min-content;
    text-align: center;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    color: var(--text-secondary);
    font-weight: 600;
}

span.about-data-title.followers {
    white-space: nowrap;
}

span.about-data-int {
    font-size: 18px;
}

span.about-data-title {
    font-size: 10px;
    margin-top: -1px;
    font-weight: 400;
}

.about-info, .about-ranchers {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 5px 0px;
    gap: 6px;
}

span.about-info-title, span.about-ranchers-title {
    font-size: 17px;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0px 20px;
}

.about-info-wrapper, .about-ranchers-wrapper {
    display: flex;
    flex-direction: column;
}

.about-info-wrapper {
    gap: 3px;
}

.about-info-block {
    padding: 0px 20px;
    display: flex;
    font-size: 11px;
    color: var(--text-secondary);
    fill: var(--text-secondary);
    gap: 5px;
    font-weight: 500;
}

span.about-info-block-data {
    display: inline-block;
    width: 100%;
    text-align: right;
    color: var(--text-primary);
}

.about-info-block svg {
    width: 20px;
    height: 20px;
}

.about-ranchers-wrapper {gap: 5px;}

.about-ranchers-wrapper img {
    width: 35px;
    height: 35px;
}

.about-ranchers-wrapper .user-profile-top-left {
    font-size: 13px;
}

.about-ranchers-wrapper .user-profile:last-child {
    border-bottom: none;
}

.about-ranchers-wrapper .user-profile:first-child {
    padding-top: 10px;
}

.about-ranchers-wrapper .user-profile {
    padding: 0px 20px 8px 20px;
}

.about-ranchers {
    gap: 0px;
}

.about-ranchers-wrapper .entity-title {
    font-weight: 500;
}

#about-modal.page .about-top .about-data {
    justify-content: center;
    gap: 45px;
}

.about-info-block span {
    white-space: nowrap;
}

span.about-established a {
    font-family: inherit;
    color: var(--text-primary);
    font-size: inherit;
    text-decoration: none;
}

span.about-established a:hover {
    text-decoration: underline;
}

span.ranch-bio.page-bio a {
    color: var(--text-primary);
    font-size: inherit;
    font-family: inherit;
    text-decoration: none;
}

span.ranch-bio.page-bio a:hover {
    text-decoration: underline;
}

button.search-tags-btn {
    position: absolute;
    top: 64px;
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px 6px;
    font-size: 11px;
    font-family: inherit;
    background: none;
    border: 1px solid var(--text-secondary);
    font-weight: 400;
    border-radius: 50px;
    cursor: pointer;
    color: var(--text-secondary);
}

ul.post-tags__list {
    list-style-type: none;
}

svg.search-icon-tags {
    width: 14px;
    height: 14px;
    margin: 1px 2px 0px -2px;
    fill: #000000;
}

div#tags-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    background: var(--bg-surface);
    border-radius: 18px;
    overflow: hidden;
    overflow-y: auto;
    z-index: 1001;
    font-size: 16px;
    box-shadow: 0 0 20px -9px #000;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    font-size: 14px;
    color: var(--text-primary);
    max-height: calc(100vh - 20px);
    background: var(--bg-surface);
}
